-
Notifications
You must be signed in to change notification settings - Fork 12k
Error in chunk main - HarmonyImportDependency #1587
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
Does this mean that you were migrating an existing CLI app from the SystemJS build to Webpack build version? |
Yes! :) |
Did you follow the steps from the Migration guide? Just want to rule out these steps first. Also this is strange that you are getting this error because it pertains to an older version of the webpack 2 which may be fixed. What does your |
Oooo, one more thing, since this is related to HarmonyImports, this means that then the output that webpack is trying to read is ES6 related. What does the contents of your |
{ |
Is this a project that I can test locally myself to see what the issue might be. I need more information to know what specifically is causing this error to happen. |
It would probably be a bit hard to test it - it uses a separate backend. However, build and compile should work fine I reckon. It's on a private gitlab repo though - I sent you a dm on twitter with the git info. |
I have similar issues - when building with env=prod it works fine. |
I'm experiencing the exact same error with version: beta.11-webpack2 Other Warnings:
Other Errors:
|
@andyrue it's a webpack issue, think @TheLarkInn is on it. :) |
Yup I'm working on this, this is a problem with HarmonyDependencies and the DedupePlugin({}) webpack/webpack#2644. @filipesilva We need to remove The fix for this issue on webpack's side is pretty complex (because of The optimizations are very very minimal, and as long as users don't make the mistake of importing dupes of dependencies, it shouldn't be a problem. |
* ~ adding angular-*@2.0.0-rc6 * ~ fixing .specs for angular-*@2.0.0-rc6 * ~ removing comment from x-large spec * ~ remove old module from +detail and adding again CommonModule * ~ disabling DedupePlugin (angular/angular-cli#1587)
Closed via #1937 |
I have exact the same issue. When will the fix be available? |
I have the same issue when I run ng build -prod
|
I have exact the same issue: |
I am seeing this as well. Thanks, |
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. |
Windows 10
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
node: 4.3.0
os: win32 x64
do on your code? etc.
Create with cli (systemjs). Upgraded to webpack
more information.
ERROR in chunk main [initial]
[name].[chunkhash].bundle.js
Template cannot be applied as TemplateArgument: HarmonyImportDependency
Only happens with ng serve/build -prod. Dev works fine.
The text was updated successfully, but these errors were encountered: