I'm working in a React app with create-react-app and suddenly after installing react-charts-2 I started to get this error:
./node_modules/@jest/console/build/BufferedConsole.js
Module not found: Can't resolve 'console' in '/my-app/node_modules/@jest/console/build'
I already tried to remove the react-charts-2 but the error still appears.
Any thoughts?
Node 6.9.0
I had this error due to auto import of a function from an incorrect library:
import each from 'jest-each' -- should be 'lodash' here
Removing this line fixed the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With