Skip to content

Commit 9520f4b

Browse files
committed
Look for bluebird
1 parent c1df4df commit 9520f4b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/schematics/ng-add.ts

+13
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ export const setupProject =
3737
export const ngAddSetupProject = (
3838
options: DeployOptions
3939
) => async (host: Tree, context: SchematicContext) => {
40+
41+
// HACK HACK HACK
42+
// I'm still not able to resolve bluebird.... this is definately some sort
43+
// of race condition.
44+
await new Promise<void>(resolve => {
45+
setTimeout(() => {
46+
try {
47+
require('bluebird');
48+
resolve();
49+
} catch (e) { }
50+
}, 100);
51+
});
52+
4053
const projects = await listProjects();
4154
const { firebaseProject } = await projectPrompt(projects);
4255
const { project } = getProject(options, host);

0 commit comments

Comments
 (0)