You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By changing AppModule import url in main.tsng add @angular/pwa or ng add @angular/material stop working because getAppModulePath from ng-ast-utils.ts combine ${mainDir} from angular.json and ${moduleRelativePath} from main.ts
🔬 Minimal Reproduction
Edit tsconfig.json
Change the AppModule import url
Run ng add @angular/pwa or ng add @angular/material
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
By changing AppModule import url in main.ts
ng add @angular/pwa
orng add @angular/material
stop working becausegetAppModulePath
fromng-ast-utils.ts
combine${mainDir}
from angular.json and${moduleRelativePath}
from main.ts🔬 Minimal Reproduction
Edit tsconfig.json
Change the AppModule import url
Run
ng add @angular/pwa
orng add @angular/material
🔥 Exception or Error
🌍 Your Environment
🔬Resolution
isRelativePath
function should be added to determine whether the path to AppModule from main.ts is relative or notThe text was updated successfully, but these errors were encountered: