-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
TypeError: Cannot redefine property: restore #10612
Comments
There's a quite similar exception when using |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
We use a monorepo, and most of the time when we try to test a file that imports another module from the monorepo, an error occurs. One of the most common is:
We've even tried jest without babel, since now ES modules are partially supported (#9430). However, we had some problems, specifically #10025
In this small repo, when I removed the
rewire-exports
babel plugin from the config file it seemed to work (even though I didn't tried to rewire any module), but in my official repo I received the following error:Link to repl or repo (highly encouraged)
https://github.com/guilhermetelles/test-error-repo
To Reproduce
Expected behavior
Jest with babel should import modules correctly
envinfo
System:
OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Binaries:
Node: 13.14.0 - ~/.nvm/versions/node/v13.14.0/bin/node
npm: 6.14.4 - ~/.nvm/versions/node/v13.14.0/bin/npm
npmPackages:
jest: ^25.1.0 => 25.5.4
The text was updated successfully, but these errors were encountered: