question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run on react-addons-test-utils@15.4.0-rc.3

See original GitHub issue

Hi I update my react-addons-test-utils to 15.4.0-rc.3, that the error occurs when I run npm test.

ERROR in .//react-element-to-jsx-string//react-addons-test-utils/index.js Module not found: Error: Can’t resolve ‘react/lib/ReactTestUtils’ in ‘/Users/Welly/Desktop/react-cool-starter/node_modules/react-element-to-jsx-string/node_modules/react-addons-test-utils’ @ .//react-element-to-jsx-string//react-addons-test-utils/index.js 1:17-52 @ .//react-element-to-jsx-string/index-dist.js @ .//chai-enzyme/build/assertions/contain.js @ ./~/chai-enzyme/build/index.js @ ./tools/testing/test-bundler.js

Any solution for this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
gaearoncommented, Jun 7, 2017

I’m seeing this same issue.

This is not the same issue (notice the module name is different from the one in the thread). Please update to React 15.5.4, and it will be fixed.

2reactions
gaearoncommented, Nov 17, 2016

For future reference please report issues in RCs to us 😃. This is the reason we publish them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting up Jest and Enzyme to test React 15 cannot find ...
I have installed the following dependencies: react-addons-test-utils 15.3.2; react 15.4.0-rc.4; react-dom 15.4.0-rc ...
Read more >
Test Utilities - React
ReactTestUtils makes it easy to test React components in the testing framework of your choice. At Facebook we use Jest for painless JavaScript...
Read more >
react-addons-css-transition-group | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Setting up Jest & Enzyme in a Meteor.js (and Apollo) Project
Lets go to package.json and add our test script. Change this: "test": "npm run lint". To this:
Read more >
react-addons-test-utils - npm
This package provides the React TestUtils add-on.. Latest version: 15.6.2, last published: 5 years ago. Start using react-addons-test-utils ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found