mocha-webpack: Mocha-webpack does not appear to work with webpack 4

Issue Running mocha-webpack with the latest webpack 4 appears to fail. No test output is displayed.

I have create a repo that recreates the issue here: https://github.com/ctaylo21/mocha-webpack-webpack4-bug

I see a deprecation warning about DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead but from what I’ve read that shouldn’t be a breaking change.

Any way to debug this to see if something is blowing up and the error just isn’t getting output anywhere?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 33
  • Comments: 34 (8 by maintainers)

Commits related to this issue

Most upvoted comments

yarn upgrade mocha-webpack@v2.0.0-beta.0 or npm install mocha-webpack@next

Released as 2.0.0-beta.0

Do we need a new maintainer?

mocha-webpack 2.0.0-beta (npm link) was published last year and is still the latest version.

Came across this issue long ago, and same solution fixed it. npm i -D mocha-webpack@next.

Resolved issue by removing mocha-webpack and installing mochapack.

@yinsang / @zinserjan - Is it time for a 2.0.0 release? 😃

yarn upgrade mocha-webpack@v2.0.0-beta.0 or npm install mocha-webpack@next

@yinsang still didn’t work with mocha 8.., last it worked with for me was mocha 7.2.0

@ctaylo21 to fix this warning DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead I updated that npm i -D karma-webpack@next

Thanks @astorije and to @zinserjan . Really looking forward for this to work. Kudos to you guys!

If anyone wants to help, I opened a PR at #211, solely counting on CI reports to tell me if things are working smoothly 😅