-
Notifications
You must be signed in to change notification settings - Fork 220
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
Dynamic import does not work after 2.0.7 #291
Comments
+1, same problem here, on phantomjs macosx and phantomjs on jenkins (some linux distro) |
i hope i fixed this in |
@jackysee i tested https://github.com/jackysee/karam-webpack-test with #293 pull-request But i can't check it on Windows. below steps may help you to quick setup env
|
@jackysee For Windows needed more complex fix due to |
If it helps, the karma-webpack generated chunk asset files don't actually live on disk. They live in memory via webpack-dev-middleware. When I do something like this: require.ensure([], (require) => {
require('module1')
require('module2')
require('module3')
}, 'named-chunk') the karma-webpack setup will generate It does work on 2.0.6. |
Thanks so much for reporting this! I've switch back to 2.0.6 for now - my tests pass once more 👍 (Windows again) |
I can confirm that #293 fixes the issue on Mac in more instances. Would be great if we can get this fixed soon-ish so that we can update. I can also confirm that downgrading to 2.0.6 actually works to fix this as well, it's not perfect but it's something. |
Fix released in |
The karma-webpack package was locked to 2.0.6 due to issue [1]. This has been resolved in the package and we can now use latest. [1] - codymikol/karma-webpack#291 Change-Id: I2c72129c5428bb3106a118397d0090df1e38f867 Signed-off-by: Scott J Dickerson <[email protected]>
I'm submitting a bug report
Webpack version:
3.10.0
Webpack Karma version:
2.0.7
Karma version:
1.7.1
Please tell us about your environment:
Windows 10
Browser: Chrome
Current behavior:
Having the webpack do the code splitting at dynamic import statement e.g.
import('./file.js')
, karma serve the path as system file path and chrome report that it cannot load the resource:Expected/desired behavior:
It should load the resource at e.g.
http://localhost:9867/_karma_webpack/0.bundle.js
, just as it did in version karma-webpack 2.0.6.https://github.com/jackysee/karam-webpack-test
The text was updated successfully, but these errors were encountered: