Skip to content
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

Issue with Webpack 5 unable to find file 404 (works with webpack 4) #546

Closed
ankitdadhich opened this issue Jan 3, 2023 · 1 comment
Closed

Comments

@ankitdadhich
Copy link

ankitdadhich commented Jan 3, 2023

  • Operating System: Windows 10
  • Node Version: 16.15.1
  • NPM Version: 8.11.0
  • webpack Version: 5.74.0
  • karma-webpack Version: 5.0.0

Actual Behavior

Code

Debug Log
packages.json https://gist.github.com/ankitdadhich/24c5e031a1a6ff447a1418f4a27472bb
karma test debug log error with webpack 5 https://gist.github.com/ankitdadhich/0a046e4e843237137b7340c6a0edb719
karma test debug log working sample with webpack 4 https://gist.github.com/ankitdadhich/3e452bfc2c30c965531f17eb81f8c23f
webpack.config.js https://gist.github.com/ankitdadhich/df1db0ff4483845c640eae3c46cbe174

How Do We Reproduce?

Issue with Webpack 5. Just use above latest versions of webpack 5

@juburr
Copy link

juburr commented Jan 7, 2023

My project also started spitting back 404 errors after upgrading to webpack 5. They were coming from unit tests utilizing axios-mock-adapter. I had to add the following lines to my dev mode webpack configuration to get it working:

optimization: {
    runtimeChunk: false,
    splitChunks: false
},

Karma-webpack works great with webpack v5 after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants