在我的从 Angular 12 迁移到 Angular 13 后,我在控制台中遇到了以下错误:
。
此外,如果我更改代码,浏览器不会自动重新加载。
请注意:我没有额外的 webpack 配置。
这是我的
![webpack-dev-server error, index.js line 558. On new line: Event object, isTrusted true, type 'error', target WebSocket, currentTarget WebSocket, eventPhase 2, ellipsis](https://istack.dev59.com/Xjwtb.webp)
此外,如果我更改代码,浏览器不会自动重新加载。
请注意:我没有额外的 webpack 配置。
这是我的
package.json
文件的软件包版本信息: "devDependencies": {
"@angular-devkit/build-angular": "~13.1.2",
"@angular-eslint/builder": "12.3.1",
"@angular-eslint/eslint-plugin": "12.3.1",
"@angular-eslint/eslint-plugin-template": "12.3.1",
"@angular-eslint/schematics": "^12.3.1",
"@angular-eslint/template-parser": "12.3.1",
"@angular/cli": "~13.1.2",
"@angular/compiler-cli": "~13.1.1",
"@angular/language-service": "~13.1.1",
"@biesbjerg/ngx-translate-extract": "^7.0.4",
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
"@types/file-saver": "^2.0.3",
"@types/hashids": "^2.0.1",
"@types/moment-timezone": "^0.5.12",
"@types/uuid": "^8.3.3",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"autoprefixer": "^10.3.3",
"eslint": "^7.32.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jsdoc": "36.0.8",
"eslint-plugin-prefer-arrow": "1.2.3",
"hashids": "^2.2.8",
"invariant": "^2.2.4",
"postcss": "^8.1.0",
"typescript": "~4.5.4",
"webpack-bundle-analyzer": "^4.4.2"
}