webpack 无法读取未定义TypeError的属性'length':无法在新服务器上读取undefined的属性'length'

vs91vp4v  于 2022-11-13  发布在  Webpack
关注(0)|答案(1)|浏览(204)

无法读取未定义的属性'length'
类型错误:无法读取未定义的属性“长度”,该服务器位于www.example.com上的新服务器(E:\新文件夹\Mohsin项目\fishry店面\node_modules\webpack-dev-server\lib\Server.js:51:24),该服务器Class.run位于E:\新文件夹\Mohsin项目\fishry店面\node_modules@angular\cli\tasks\serve.js:235:24上的新服务器(E:\新文件夹\Mohsin项目\fishry店面\node_modules@angular\cli\commands\serve.js:123:26),该服务器位于处理TicksAndRejections(internal/process/task_queues.js:

I am recieving this error
my node version is v14.15.1
my npm version is v6.14.8
my angular/Cli version is v1.6.7
@angular/cdk: 5.2.5
@angular/cli: 1.6.7
@angular/material-moment-adapter: 5.2.5
@angular/material: 5.2.5
@angular-devkit/architect: 0.1402.9
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 14.2.9
@angular-devkit/schematics: 14.2.9
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 14.2.9
typescript: 2.6.2
webpack-bundle-analyzer: 4.7.0
webpack-node-externals: 1.7.2
webpack: 5.75.0

首先,我收到了这个错误Angular CLI error Cannot read property 'write' of undefined,我用这个解决方案来删除这个错误,现在错误描述已经更改,我已经尝试了太多版本的节点和@angular/cli几乎每个都得到一个全新的错误

xzlaal3s

xzlaal3s1#

试用这些版本和若要使项目正常工作

相关问题