-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
jest error in Node version over 11.11 #6591
Comments
same here. |
I'm getting the same error |
Experiencing the same on node@latest, downgrading to node 10.6.0 makes everything fine and dandy. |
Me too the same error. Hey @viktorlarsson what if reactjs ? |
Got the same error on the latest node image |
Same here |
This is to resolve a bug with the latest version of Node and Jest see: facebook/create-react-app#6591
This is to resolve a bug with the latest version of Node and Jest see: facebook/create-react-app#6591
There is no error with node v11.10.1, but it is with v11.11.0
Example v11.11.0:
|
same here |
Same here |
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>' at exports.default (node_modules/jest-util/build/create_process_object.js:15:34)
Please fix this :( |
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>' at exports.default (node_modules/jest-util/build/create_process_object.js:15:34) fix:
This is to resolve a bug with the latest version of Node and Jest see: facebook/create-react-app#6591
If you need to get this to work with node 11.11 and you cannot downgrade... It is already fixed with newer jest version. The complete cmd that solves the issue for myself is: Until create-react-app has updated to newer jest-version, we can remove jest from our package.json and also reactivate this skipped preflight-check. |
Latest travis breaks for node v11.11 with jest: facebook/create-react-app#6591
Latest travis breaks for node v11.11 with jest: facebook/create-react-app#6591
Latest travis breaks for node v11.11 with jest: facebook/create-react-app#6591
if you use gitlab CI you can change |
What worked for me was changing the version of Jest to |
node@11.10.0 works fine, you don't need to downgrade to 10.6. The one with problems is node@11.11.0 |
As @Marjona6 stated it's fixed since version 24.3.0 so this issue should be closed. |
its not fixed in create-react-app since it doesn't bring jest 24 with it. It should be "awaiting" for this PR to be merged: #6278 |
OK, my problem was that my |
Hey guys, lot of people are subscribed to this issue to be warned when a fix gets released. Please may you refrain from posting all your very own personal solutions that explain how did you downgrade your Docker images to use node <11.11 please? |
* Fix formatting and linting. In first place, let me apologize. I needed to fix the Finnish formatting but linting got into my editor's way so this is the complete list of changes: - Fix formatting for a few languages. Some languages include a dot in the short format and in the data we get that dot surrounded by single quotes. This is the main reason for this PR. - Make the project pass its linting rules. - Make CI check linting. - Fix path in tslint.json to properly exclude test/locale-data.ts - Add test/locale-data.ts to .prettierignore * Fix versions of node to use Jest is having a problem with latest unstable node (11.11.0) facebook/create-react-app#6591 so trying to set specific supported versions to fix travis * Fix specifying versions
See facebook/create-react-app#6591 for more details.
This is a temporary solution to unblock our release. See this SO: https://goo.gl/dpWurj The correct solution is to update to the latest Jest, however it looks like it may require a bump and reconfig of babel/babel-plugins. ``` FAIL test/web3.test.js ● Test suite failed to run TypeError: this.setDynamic is not a function at PluginPass.pre (node_modules/babel-plugin-transform-runtime/lib/index.js:31:12) at transformFile (node_modules/@babel/core/lib/transformation/index.js:78:27) at runSync (node_modules/@babel/core/lib/transformation/index.js:45:3) at transformSync (node_modules/@babel/core/lib/transform.js:43:38) at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:367:35) at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:437:40) at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:493:19) ``` Relevant Jest issue: facebook/create-react-app#6591
Similar to this issue: facebook/create-react-app#6591
Why not v11.11.0? Because there's a standing issue with Jest: facebook/create-react-app#6591
None of the solutions in this thread have helped me, so yes, please refrain from posting what personally worked for you until a solution exists that works for everybody, this is frustrating. |
How are you supposed to know if it works for everyone or not? |
We've released an alpha of create-react-app 3.0. Head on over to #6475 for instructions to install the latest alpha build which includes Jest 24. Let us know if it solves this issue! |
@ianschmitz Yes, it solved the problem 👍 |
node 11.12 fixed it |
Ok |
Closing as it sounds like this is resolved in Node 11.12 |
Before we got the same error es described in facebook/create-react-app#6591 when node.js v11.11.0 was used.
* Upgrade jest to allow running tests with node.js 11.11 Before we got the same error es described in facebook/create-react-app#6591 when node.js v11.11.0 was used. * Remove unused TxDeploy import * Rebuild example projects from local web3x build
PS. I do not speak English well. Please understand.
Is this a bug report?
Yes
Did you try recovering your dependencies?
yes / Initialized project with
npx create-react-app my-project
Which terms did you search for in User Guide?
jest, jest version
Environment
$ npx create-react-app --info
npx: installed 63 in 8.392s
Environment Info:
System:
OS: Linux 4.4 Ubuntu 18.04.2 LTS (Bionic Beaver)
CPU: x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Binaries:
Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
Yarn: 1.13.0 - /usr/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.11.0/bin/npm
npmPackages:
react: ^16.8.4 => 16.8.4
react-dom: ^16.8.4 => 16.8.4
react-scripts: 2.1.8 => 2.1.8
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
Expected Behavior
Currently, the LTS version of node.js is 10, but will change from 2019-04-01 to version 11. That's why I think we need to fix the problem.
This problem has been fixed as follows after jestjs/jest@800f2f8 (v24.2.0-alpha.0).
modify to
I used the 10.15.3 node and tried the 24.3.0 Jest. As a result, it worked fine. But I have not tested it for other versions of the node.
Actual Behavior
The same is true without "CI=true".
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: