Skip to content

Commit

Permalink
Look for bluebird
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed May 18, 2021
1 parent c1df4df commit 9520f4b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/schematics/ng-add.ts
Expand Up @@ -37,6 +37,19 @@ export const setupProject =
export const ngAddSetupProject = (
options: DeployOptions
) => async (host: Tree, context: SchematicContext) => {

// HACK HACK HACK
// I'm still not able to resolve bluebird.... this is definately some sort
// of race condition.
await new Promise<void>(resolve => {
setTimeout(() => {
try {
require('bluebird');
resolve();
} catch (e) { }
}, 100);
});

const projects = await listProjects();
const { firebaseProject } = await projectPrompt(projects);
const { project } = getProject(options, host);
Expand Down

0 comments on commit 9520f4b

Please sign in to comment.