Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BufferedConsole module not found

Tags:

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

like image 939
jonatasdaniel Avatar asked Jun 28 '19 21:06

jonatasdaniel


1 Answers

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.

like image 121
zhul.aigul Avatar answered Nov 15 '22 06:11

zhul.aigul