We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d4975c commit 33097e7Copy full SHA for 33097e7
1 file changed
packages/cli-plugin-ionic-angular/src/utils/generate.ts
@@ -26,11 +26,11 @@ export async function prompt(context: AppScriptsType.BuildContext) {
26
export async function getModules(context: AppScriptsType.BuildContext, kind: string) {
27
switch (kind) {
28
case 'component':
29
- return context.componentsNgModulePath;
+ return context.componentsNgModulePath || context.appNgModulePath;
30
case 'pipe':
31
- return context.pipesNgModulePath;
+ return context.pipesNgModulePath || context.appNgModulePath;
32
case 'directive':
33
- return context.directivesNgModulePath;
+ return context.directivesNgModulePath || context.appNgModulePath;
34
}
35
36
0 commit comments