我刚刚重新安装了ANGLING CLI,以便试用它,但我不知道是什么原因导致命令行出现以下错误:

    PC:cobros Fran$ ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 95% emitting/Users/Fran/Documents/Workspace/Repos/cobros/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40
        callbacks[i](err, result);
                    ^

TypeError: callbacks[i] is not a function
    at Storage.finished (/Users/Fran/Documents/Workspace/Repos/cobros/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40:15)
    at /Users/Fran/Documents/Workspace/Repos/cobros/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:77:9
    at /Users/Fran/Documents/Workspace/Repos/cobros/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:153:5)

这是我try "ng-v"时得到的信息(以防有用):

Angular CLI: 1.6.8
Node: 8.9.0
OS: darwin x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.8
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.8
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

"增强解析"模块甚至可以做什么?

推荐答案

编辑:该问题现已修复,因此不再需要使用此解决方法.


找到here个解决方案(解决方法)

"copy-webpack-plugin": "4.3.0"加到你的包裹里.json

谢谢@neshkatrapati

Angular相关问答推荐

Angular 空变量使用组件之间的共享服务

为什么我的自定义.d.ts不起作用?LeaderLine不是构造函数

[已解决]如何在模块ngDoBootstrap中测试Angular 自定义元素和做覆盖

选中/取消选中-复选框未正确返回TRUE或FALSE

@ngrx/调度时未定义存储操作

我应该对我想要在我的Angular 17+组件中显示的任何变量使用信号吗?

如何将角17中的嵌套组件与独立组件一起使用?

找不到模块webpack dev服务器

URL 更改但组件未在 Angular 导航中呈现

多个 Mat Paginator 在 Angular 组件中不起作用

as和let之间的异步管道区别

如何将新的 FormGroup 或 FormControl 添加到表单

无法从模块it was neither declared nor imported导出服务

Angular 2 http 没有得到

Angular 2 中的 OnChanges 和 DoCheck 有什么区别?

Angular 应用程序中的语法错误:Unexpected token <

如何以编程方式触发`valueChanges`?

如何将从后端渲染的参数传递给angular2 bootstrap 方法

Angular 9 引入了需要加载的全局$localize()函数

如何在 Angular 2 中取消 HTTPRequest?