question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression in v2.0.8 using webpack file-loader

See original GitHub issue

I’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 image variable should contain the path where karma serves the image.

  • What is the motivation / use case for changing the behavior? Regression?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PSpSynedracommented, Feb 28, 2018

@gdetrez Same here. With 2.0.13 it is gone and everything works fine.

0reactions
gdetrezcommented, Feb 28, 2018

@michael-ciniawsky @PSpSynedra At least for our use case, it seems that 2.0.13 finally solved this issue 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regression in v2.0.8 using webpack file-loader #284 - GitHub
I'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: ...
Read more >
webpack file-loader duplicates files - Stack Overflow
I'm using some plugins like HtmlWebpackPlugin or CleanWebpackPlugin , but I believe they are not causing the problem. Versions: webpack 5.28.0 ...
Read more >
file-loader - webpack - JS.ORG
The file-loader resolves import / require() on a file into a url and emits ... Specifies a custom filename template for the target...
Read more >
Error state does not match - Auth0 Community
I get an error that says that my state does not match, it worked before i upgraded to angular 5 from 4. Update:...
Read more >
Software Packages in "bionic", Subsection web - Ubuntu
JavaScript utility for merging multiple objects into one. node-merge-descriptors (1.0.1-1) [universe]: merge objects using descriptors; node-merge-stream (1.0.1 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found