Regression in v2.0.8 using webpack file-loader
See original GitHub issueI’m submitting a bug report
Webpack version: 3.10.0
Webpack Karma version: 2.0.8
Karma version: 1.7.1
Please tell us about your environment: Linux
Browser: Chrome
Current behavior: I have tests that looks a bit like this:
import image from './test.png';
...
fetch(image).then(response => /* some test that use the image */)'
This used to work fine but with the release of 2.0.8, it doesn’t work anymore. In the output, I can see that:
14 12 2017 15:53:46.483:WARN [web-server]: 404: /tmp/gregoire/_karma_webpack_8a5c1d368c47a24658318f24915284d7.png
I think that the introduction of the tmpdir is preventing karma from finding the image emitted by webpack…
Expected/desired behavior:
-
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration. I made a repository that shows the problem: https://github.com/gdetrez/karma-webpack-issue
-
What is the expected behavior? The
imagevariable should contain the path where karma serves the image. -
What is the motivation / use case for changing the behavior? Regression?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)

Top Related StackOverflow Question
@gdetrez Same here. With 2.0.13 it is gone and everything works fine.
@michael-ciniawsky @PSpSynedra At least for our use case, it seems that 2.0.13 finally solved this issue 🎉