Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialFilip Lindbladh
1,204 PointsError when running npm test with my react project
When i run npm test on my project i get the following error:
Cannot find module 'react' from 'Accordion.js' at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17) at Object.<anonymous> (../../node_modules/react-bootstrap/lib/Accordion.js:21:14)
I tried to set up the project again, and faced the same problem. Since all the files in node_modules are set up by Create react app there must be some kind of fundamental problem. Have i missed to import the right files in the configuration somewhere?
thanks
Kelcey Wilson
15,738 PointsKelcey Wilson
15,738 PointsSame here.