我在使用角度5的web-pack 4中遇到问题,首先我不知道web-pack的工作方式,如何使用web-pack改善我的应用程序性能。我正在寻找网页包装来优化我的应用程序性能水平。目前,我的应用程序需要很长时间才能加载到浏览器中。 任何人遇到此问题,请帮助我。 我在应用程序中使用了有角度的网站web-pack配置文件,当时我遇到以下问题。我尝试了谷歌给出的所有解决方案。什么都不适合我。
ERROR in ./node_modules/@angular/core/esm5/core.js
Module not found: TypeError: dep.isEqualResource is not a function
@ ./node_modules/@angular/core/esm5/core.js 6570:15-36 6590:15-102
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
我的包裹杰森:
{
"scripts": {
"ng": "ng",
"start": "webpack-dev-server --inline --progress --port 8080",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.11",
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.11",
"@angular/forms": "^5.2.11",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"@ng-bootstrap/ng-bootstrap": "^1.1.0",
"@ng-select/ng-select": "^1.4.1",
"@ngx-loading-bar/http-client": "^2.2.0",
"@swimlane/ngx-datatable": "^11.3.2",
"@types/jquery": "^3.3.6",
"@types/jwt-decode": "^2.2.1",
"angular-archwizard": "^3.0.0",
"angular-font-awesome": "^3.1.2",
"angular2-flash-messages": "^3.0.1",
"bootstrap": "^4.1.3",
"chart.js": "^2.7.3",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"jquery": "^3.3.1",
"js-sha256": "^0.9.0",
"jwt-decode": "^2.2.0",
"ng-block-ui": "^2.0.0",
"ng-bootstrap-modal": "^1.1.19",
"ng2-charts": "^1.6.0",
"ng4-loading-spinner": "^1.2.3",
"ng5-slider": "^1.1.3",
"ngx-avatar": "^2.9.0",
"ngx-barcode": "^0.2.4",
"ngx-datatable": "^1.0.3",
"ngx-mask": "^7.0.1",
"ngx-permissions": "^4.1.0",
"ngx-toastr": "^8.10.2",
"qz-tray": "^2.0.8",
"rsvp": "^4.8.4",
"rxjs": "^5.5.6",
"sha": "^2.0.1",
"ws": "^6.1.0",
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "1.6.7",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^6.14.2",
"angular2-template-loader": "^0.6.2",
"awesome-typescript-loader": "^5.2.1",
"codelyzer": "^4.0.1",
"css-loader": "^2.1.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^3.0.1",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"jasmine-core": "^2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^3.1.4",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^3.0.5",
"null-loader": "^0.1.1",
"protractor": "^5.4.0",
"raw-loader": "^1.0.0",
"style-loader": "^0.23.1",
"to-string-loader": "^1.1.5",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3",
"webpack": "^4.10.2",
"webpack-cli": "^3.0.1",
"webpack-merge": "^4.1.2"
}
}