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

Configuration for Mocha/webpack5 #135

Open
cardosoj-ppb opened this issue Jul 18, 2022 · 1 comment
Open

Configuration for Mocha/webpack5 #135

cardosoj-ppb opened this issue Jul 18, 2022 · 1 comment

Comments

@cardosoj-ppb
Copy link

Hi,
In our applications we have been using this plugin for a while.
Recently. we needed to bump our webpack version to webpack5.

When running our tests we get an error:

/***/if(typeof __webpack_require__!=='undefined') {
     ^^

SyntaxError: Unexpected token 'if'

This seems like an incompatibility with webpack5.

Currently we are using Node 14 (nvm use 14) withe that following package versions:

"mocha": "10.0.0",
"rewiremock": "3.14.3",
"webpack": "5.46.0"

Thanks

@theKashey
Copy link
Owner

Duplicate of #134

@theKashey theKashey marked this as a duplicate of #134 Jul 20, 2022
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

2 participants