I have been working on a project with ng2 and webpack, everything was running smoothly until I updated the package.json file. Since then, I have been encountering some errors. Can anyone please assist me in identifying the issue? Thank you for any help!
P.s. The structure of my project is based on the official ng2 webpack example.
Cannot find module 'enhanced-resolve/lib/getInnerRequest'
@ multi polyfillserrors @ client?cd17:75sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35
Cannot find module 'enhanced-resolve/lib/getInnerRequest'
@ multi vendorerrors @ client?cd17:75sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35
Cannot find module 'enhanced-resolve/lib/getInnerRequest'
@ multi app
Here is the current version of my package.json:
{
"name": "test",
"version": "1.0.0",
"description": "Test Project",
"scripts": {
"start": "webpack-dev-server --inline --progress --colors --port 8080",
"deploy": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
"postinstall": "typings install",
"test": "karma start"
},
"license": "MIT",
"dependencies": {
"@angular/common": "2.2.3",
"@angular/compiler": "2.2.3",
"@angular/core": "2.2.3",
"@angular/forms": "2.2.3",
"@angular/http": "2.2.3",
"@angular/platform-browser": "2.2.3",
"@angular/platform-browser-dynamic": "2.2.3",
"@angular/router": "3.2.3",
"@types/lodash": "^4.14.37",
"core-js": "^2.4.1",
"jquery": "^3.1.1",
"ng2-redux": "^4.0.0-beta.0",
"rxjs": "5.0.0-rc.4",
"zone.js": "^0.7.2"
},
"devDependencies": {
"@types/jquery": "^2.0.34",
...
Many more dev dependencies here
...
}
}
And this is the previous version of my package.json (the one that was working):
{
"name": "test",
"version": "1.0.0",
"description": "Test Project",
"scripts": {
"start": "webpack-dev-server --inline --progress --colors --port 8080",
"deploy": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
"postinstall": "typings install",
"test": "karma start"
},
"license": "MIT",
"dependencies": {
"@angular/common": "2.1.2",
"@angular/compiler": "2.1.2",
...
Other dependencies listed here
...
},
"devDependencies": {
"@types/jquery": "^2.0.34",
...
More dev dependencies listed
...
}
}