use*_*720 9 ionic4 angular7 angular7-router
我已经在angular 7和ionic 4上创建了一个应用程序。我试图编辑app.routing.ts文件,设置路径和组件。从那时起,我在下面收到此错误:
ERROR in ./src/app/department/department.module.ts
[ng] Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
[ng] Error: ENOENT: no such file or directory, open 'C:\Users\x\department\department.module.ts'
[ng] at Object.openSync (fs.js:436:3)
[ng] at Object.readFileSync (fs.js:341:35)
[ng] at Storage.provideSync (C:\Users\x\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
Run Code Online (Sandbox Code Playgroud)
小智 2
确保部门组件存在,检查与您引用的文件名相对应的 templateUrl。您也可能在修改app.routing.ts文件的过程中不知不觉地修改了路径。
C:\Users\x\department\department.module.ts
| 归档时间: |
|
| 查看次数: |
2080 次 |
| 最近记录: |