-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Ran Update with New Version of CLI, Now Getting a "webpack: Failed to compile" Error #4515
Comments
Did you uninstall the old angular-cli package first?
|
Yes, I uninstalled the old version of the cli globally, cleared cache, and then installed the new version globally, following these instructions:
And then I updated the app. I'm wondering if the issue is with one of the files I chose not to update when prompted? Do we know which ones are particularly important re: the update? |
I resolved this by running this again:
And then, when prompted, this time I let the process override more of my files. After that was done webpack compiled successfully and the app booted up. |
Angular CLI Beta 30. Created a project from scratch and still getting the same error. |
Replace "fallbackLoader" by "fallback", and replace "loader" by "use" in styles.js file (node_modules/angular-cli/models/webpack-configs/styles.js) |
in addition to @asmaus : probably in any styles.js file within node_modules that you use in your package, but at least in the one in node_modules/angular-cli/models/webpack-configs (the 'loader' option case is just above the fallbackLoader option, in case you are searching and searching ..) |
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. |
Running this on a MacBook Air, with OS X El Capitan V. 10.11.6
Running @angular/cli: 1.0.0-beta.30
First I did this:
Then, for my project, I followed these directions:
Note: when prompted Y or N to update various files, I selected "Y" for most, only selecting "N" for files that would potentially override my custom setup - for instance for package.json. app.component.ts, index.html, etc.
Then, after fixing some absolute path issues in a few of the components, I got my app to install, compile, and boot up.
But then, after restarting my computer, when I run "ng serve" again, I get a "webpack: Failed to compile" error with absolutely no other information. Nothing in the terminal view of Visual Studio Code, and nothing in the console on my browser.
This is what I see in my terminal after running "ng s":
One note, I was getting the "ERROR in Cannot read property 'listLazyRoutes' of undefined" error before upgrading my CLI version, but it wasn't stopping the app from booting up, and I assume that issue is unrelated to not getting the app to boot up now.
The text was updated successfully, but these errors were encountered: