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
[Bug] create-react-app/react-scripts test fails to get correct pnpapi #2006
Comments
You need to add |
I upgraded to 26.6.0 and have the same problem:
Here is my package.json at the my-app level:
The test result is the same. |
|
Right, but I overrode it with the resolution to 26.6.0 and the problem is still happening (see the yarn why above). |
|
Perfect, that fixed the problem. Thanks for your time, patience, and working on yarn 2. I'm really liking it. |
Describe the bug
When using a simple Jest test that does a require('pnpapi'), it gets this error: The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.
To Reproduce
Environment if relevant (please complete the following information):
The text was updated successfully, but these errors were encountered: