-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular RC5 app updated from CLI beta 10 to webpack 2 giving issues. #1665
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
Remove |
Wow thanks @vapits - It really did clear out those errors. I believe this should be mentioned on the update guide as well. I now hit another issue if you be kind enough to shine some light on it :)
Also i noticed that if i change the most of the files CLI re-bundles the app but for some reason the it doesn't notice any changes for one of the modules which is really weird. Any ideas what might be wrong? |
Well without your code in this can't be sure. |
hassan the solution for your problem is not to delete moduleId from everything, that will lead to errors importing if you don't change all of your paths. The answer to the issue is this pull request. For you to apply it yourself all you need to do is change metadata_resolver.js in your build You'll have to go back and undo all of your module.id deletes, or update paths on all of the files you removed moudleId from |
@antonyRoberts |
So basically i found out that the routes which contain For example:
In the above code - /login and /catalog modules do not push saved changes for webpack to rebundle. Perhaps its intentional? (because thats a separate NgModule) |
Update: This is actually an issue with webpack version of Angular. Here is a solution that should work while angular-cli is being updated: https://gist.github.com/brandonroberts/02cc07face25886fe142c4dbd8da1340 |
The |
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. |
El Capitan
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.2
node: 4.4.7
os: darwin x64
do on your code? etc.
The app was created using angular-cli.beta.10 and now trying to upgrade it to 11-webpack-2
The app compiles just fine without any issues.
However the http://localhost:4200 just shows
loading....
text.In Browser console it spits out:
Am not fully sure where or how to start debugging this issue. Please kindly help me.
P.S: It was a working app before the update to webpack version.
The text was updated successfully, but these errors were encountered: