typescript - Angular 5 构建模块失败
我的 Angular 应用分解为 5 个模块,当我尝试使用 ng build --prod 构建应用时,我会收到每个模块类似这样的错误信息
Angular 错误
错误在 ./src/app/Modules/profile/profile.module.ts 模块构建失败:错误:/Users/amrmkayid/Desktop/Nawwar-Heroku/angular-src/src/app/Modules/profile/profile.module.ts 在 TypeScript 编译中缺失。请确保它在你的 tsconfig 中通过 'files' 或 'include' 属性包含。 在 AngularCompilerPlugin.getCompiledFile (/Users/amrmkayid/Desktop/Nawwar-Heroku/angular-src/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:662:23) 在 plugin.done.then (/Users/amrmkayid/Desktop/Nawwar-Heroku/angular-src/node_modules/@ngtools/webpack/src/loader.js:467:39) 在 process._tickCallback (internal/process/next_tick.js:160:7) @ ./src/$$/_lazy_route_resource lazy @ ./node_modules/@angular/core/esm5/core.js @ ./src/main.ts @ multi ./src/main.ts
我该怎么解决这个问题?!