-
Notifications
You must be signed in to change notification settings - Fork 12k
Upgrade to Webpack 2.3.x #5915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe I should open it up on the webpack side too. What do you think @sokra @TheLarkInn ? |
@intellix that's only bumping the version in the CLI and probably won't fix the issues mentioned above. Unless the issues are caused by a conflict between the CLI's webpack and the one forced in the package.json. Hmmm |
@hccampos Can you check it using branch 1.1.x https://github.com/angular/angular-cli/tree/1.1.x that is it still an issue? |
Fixed by #5918 |
I am getting the same Error since today. We cloned our project to another PC. Doing ng serve after npm install brings us to the point, where the error occurs.
My package.json looks like this:
Angular version:
What I already did:
I can't find a solution for this in #5918. What am I doing wrong? Cheers edit: overlooked "feat(@angular/cli): use and support webpack 2.3", but whe fixing this, I get another error:
checked everything from this post, but nothing worked for me. |
I have the same problem. I updated webpack too, but it did not work... |
Same issue here. Did a full uninstall of node and cleaned directories and still get the dreaded newline error. |
same issue here
package.json:
ng serve
|
That same error when have with the installation with packages.json {
"name": "dashboard-fwa",
"version": "0.2.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.3.2",
"@angular/common": "^4.3.2",
"@angular/compiler": "^4.3.2",
"@angular/core": "^4.3.2",
"@angular/forms": "^4.3.2",
"@angular/http": "^4.3.2",
"@angular/platform-browser": "^4.3.2",
"@angular/platform-browser-dynamic": "^4.3.2",
"@angular/router": "^4.3.2",
"@swimlane/ngx-datatable": "^9.3.1",
"bootstrap": "^4.0.0-alpha.6",
"chart.js": "^2.6.0",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"ng2-charts": "^1.6.0",
"ngx-bootstrap": "^1.8.1",
"rxjs": "^5.4.2",
"zone.js": "^0.8.16"
},
"devDependencies": {
"@angular/cli": "^1.2.6",
"@angular/compiler-cli": "^4.3.2",
"@ngtools/json-schema": "^1.1.0",
"@types/jasmine": "^2.5.53",
"@types/node": "^8.0.17",
"codelyzer": "^3.1.2",
"jasmine-core": "^2.7.0",
"jasmine-spec-reporter": "^4.1.1",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.1.2",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"typescript": "^2.4.2",
"webpack": "^3.4.1",
"webpack-dev-middleware": "^1.11.0",
"webpack-dev-server": "^2.6.1"
}
} D:\Dev\WEB\MetricsMonitorClient\dashboard>npm ls webpack
[email protected] D:\Dev\WEB\MetricsMonitorClient\dashboard
`-- [email protected]
D:\Dev\WEB\MetricsMonitorClient\dashboard>npm ls -g webpack
C:\Users\carlosm\AppData\Roaming\npm
`-- @angular/[email protected]
`-- [email protected] i understood maybe the issue is because a conflict between the global and local versions of How is possible to indicate the @angular/cli the webpack version to install? |
@ceoaliongroo Have you solved it?I have the same problem. |
Heya, you shouldn't add |
The same problem, webpack it's not added in dependencies. Tried a lot of options - remove node_modules, changed the version of angular-compiler, angular-cli etc... it doesn't help |
@filipesilva - what's the recommended approach for upgrading? Going from 1.2.7 to 1.4.9 caused a similar issue for me. |
I fixed uninstalled local and globally the as @filipesilva said multiple angular-cli version installed create this kind of errors |
Hi, I found this in another thread and it worked for me: npm uninstall --save-dev webpack |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Angular CLI 1.0.0
Desired functionality.
Any plans/timeframe to upgrade to Webpack 2.3.x? Tried locking the version but compilation fails with a bunch of errors. I guess Webpack's internal apis changed (even though they shouldn't since it is a minor version bump):
The text was updated successfully, but these errors were encountered: