我正在运行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上阅读了许多相互矛盾的答案