Skip to content

Commit

Permalink
fix(@schematics/angular): specify module option as a fix for the mult…
Browse files Browse the repository at this point in the history
…iple module error
  • Loading branch information
kgajera authored and filipesilva committed Jun 10, 2020
1 parent bb66b55 commit 166fc96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/schematics/angular/utility/find-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ export function findModule(host: Tree, generateDir: string,
if (filteredMatches.length == 1) {
return join(dir.path, filteredMatches[0]);
} else if (filteredMatches.length > 1) {
throw new Error('More than one module matches. Use skip-import option to skip importing '
+ 'the component into the closest module.');
throw new Error(
'More than one module matches. Use the skip-import option to skip importing ' +
'the component into the closest module or use the module option to specify a module.');
}

dir = dir.parent;
Expand Down

0 comments on commit 166fc96

Please sign in to comment.