-
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 on windows after 2.0.7 (re-open) #317
Comments
#316 might be a duplicate (webpack 3 vs webpack 4) |
I confirm there's still an issue with any version > 2.0.6 of karma-webpack on Windows to load dynamic imports due to this commit : 0616dda On Windows, os.tmpdir() returns an absolute file path that is not allowed to be loaded through ajax. |
Any information on this? Us poor Windows users |
Yeah i'm still getting the same issue, and I can confirm that going back to 2.0.6 solves the problem temporarily. |
I have the same issue. Same environment as above (Windows 10, Karma-webpack 3+) and I can confirm it works with 2.0.6 (thanks for the workaround by the way) |
I've just tested 4.0.0-rc.2 on Windows; still a problem I'm afraid. It's what we use in ts-loader for our execution test pack. You can see this PR upgrades from 2.0.6 to 4.0.0-rc2 and then experiences issues: Linux is fine; Windows is not. The failing tests all relate to code splitting / dynamic imports. I'll open a new issue to track this and link back. |
This is an re-open issue of #291. I upgraded the karma and karma webpack, but the dynamic import still not work.
Webpack version:
3.10.0
Webpack Karma version:
2.0.13
Karma version:
2.0.0
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-test2
The text was updated successfully, but these errors were encountered: