Angular CLI运行服务webpack:编译失败,套管和打字稿编译不同

时间:2018-04-13 23:16:18

标签: node.js angular npm webpack angular-cli

我正在运行Angular 5,我已在全局和本地安装了最新的Angular CLI,但我收到此错误:

目前这个应用程序正在

ERROR in ./src/app/Assign-search/Assign-service.service.ts
Module build failed: Error: C:\dev\tom\my-test-app\src\app\Assign-search\Assign
service.service.ts is missing from the TypeScript compilation. Please make sure
it is in your tsconfig via the 'files' or 'include' property.
at AngularCompilerPlugin.getCompiledFile (C:\dev\tom\my-test-app\node_modul
s\@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (C:\dev\tom\my-test-app\node_modules\@ngtools\webpack\s
c\loader.js:467:39)
at process._tickCallback (internal/process/next_tick.js:103:7)

以下仅供参考,解决了其他应用问题

以下问题在应用程序中解决:

  

npm install pretty-checkbox

ERROR in multi ./node_modules/bootstrap/dist/css/bootstrap.min.css ./node_module
s/font-awesome/css/font-awesome.css ./node_modules/jquery-ui-dist/jquery-ui.min.
css ./node_modules/ng-pick-datetime/assets/style/picker.min.css ./node_modules/p
retty-checkbox/src/pretty-checkbox.scss ./src/styles.scss
Module not found: Error: Can't resolve 'C:\Users\z244562\RxPACE-Web\RxPaceWeb\no
de_modules\pretty-checkbox\src\pretty-checkbox.scss' in 'C:\Users\z244562\RxPACE
-Web\RxPaceWeb'

我被恢复到CLI 1.63并且遇到了更多错误。看起来像是一场疯狂的追逐,因为我在github上阅读了许多相互矛盾的答案

0 个答案:

没有答案