-
Notifications
You must be signed in to change notification settings - Fork 75
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
Mocha-webpack does not appear to work with webpack 4 #209
Comments
If anyone wants to help, I opened a PR at #211, solely counting on CI reports to tell me if things are working smoothly 😅 |
Super nice attempt there! I would really love to see mocha-webpack support webpack 4 and (mocha 5). But even if your PR gets working, would it be merged and published? Seems like this project has stopped for a while... I'm concerned on that more than the PR. /Cc @zinserjan |
@kiaking, I wouldn't be too worried about this, because there are ways to solve this: fork the project, contact @zinserjan by some other means to kindly ask for his attention, ask him to add maintainers to the project, etc. And even if that doesn't happen, once support for Webpack v4 is ensured, one can always use the GitHub URL in their About this PR, I'm unfortunately stuck and could use some help. If you or anyone else is willing to help, I am happy to grant access to my branch for people to play with, or apply changes if you have any to suggest! 🙏 🙏 🙏 |
Wow and see what happened. New release was published!!! Yeah!!! 🎉 I would really love to help, I do but I just don't have enough time... But if I can find any, I will for sure! |
👍 for the release, although that doesn't seem to fix this issue. @astorije I'm cheering for you (or anyone else that can help move this along)! |
Thanks for working on this @darrinholst . Really wanted to work on this. But looking at the huge pile of codes, couldn't figure out where to start as I have not worked on any webpack plugin before. @astorije Can you point me to the right direction? |
@adonespitogo, there is current work on this and @zinserjan is almost done! Props to him!! |
Thanks @astorije and to @zinserjan . Really looking forward for this to work. Kudos to you guys! |
Wow that was fast 🎊 Thanks so much for the hard work you guys put on this. Looking forward for the release 😃 |
I tried to use the newly merged PR for webpack 4 support in
|
Installing from github doesn't work. You need to build the sources with npm run build ;) |
Can I build the sources with github as a source? If so, how? Sorry really need this to work badly. What is your ETA for the next release? |
I was able to build the sources by forking the master branch and ran
I guess I just have to wait for the next release. Thanks so much for your work @zinserjan |
Just tried to release it as pre-release... But that failed cause This needs to be fixed before I can release it. |
@zinserjan, this is what I was talking about at #211 (comment). I'll look into it tonight :) |
Released as 2.0.0-beta.0 |
Just started using it in thelounge/thelounge#2117, and so far so good, it seems. |
|
Upgrade to 2.0.0-beta.0 fixed this for me. Thanks @zinserjan! |
It appears that this update to work with Webpack v4 made
Can this be handled in a way that's compatible with both Webpack 3 and Webpack 4, or are all the other Webpack 4 changes too much for it to work with both? |
I'm slightly confused, the doco at http://zinserjan.github.io/mocha-webpack/ claims that mocha-wepback works with webpack v4.x.x but this thread suggests it won't and I'll need 2.0.0-beta.0 ...? I've just discovered the project and using WebPack v4 |
@PandaWood support for webpack 4 is in beta 2.0.0 that's why you need to install the beta in order to use it with webpack 4. |
@aimergenge Can you check this again? It may have been resolved this week. |
Currently, installing mocha-webpack via npm defaults to 1.1.0 which does not work with webpack 4 but the docs say otherwise. Updated readme so it is more explicit (zinserjan#209)
is this fixed? |
I'm using ./node_modules/mocha-webpack/bin/mocha-webpack --webpack-config ./test/webpack.test-backend.config.ts ./src/**/*.spec.ts with specs in
|
@ctaylo21 to fix this warning |
@yinsang / @zinserjan - Is it time for a 2.0.0 release? :) |
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. |
Resolved issue by removing mocha-webpack and installing mochapack. |
Can anyone please help me with this issue TypeError: mocha.useColors is not a function WEBPACK Failed to compile with 1 error(s) TypeError: mocha.useColors is not a function |
Can anyone help me with this issue TypeError: mocha.useColors is not a function |
@Neha8482 I fixed |
@yinsang still didn't work with mocha 8.., last it worked with for me was mocha 7.2.0 |
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
.hooksinstead
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?
The text was updated successfully, but these errors were encountered: