Error module not found: Can't resolve 'jquery' in react
Hi, I have been creating a project with React. It still builds and working fine for me. But today I got an error:
Module not found: Can't resolve 'jquery'
I installed Jquery before and import it to
import $ from 'jquery';
Do you have any ideas to help me resolve this issue?
Devx Mon Jun 06 2021
I think you need to re-install npm
And it works for me.
Nguyễn Phong Jun 06 2021
Hi, the message recommendation is that run de command
npm install --save jquery, I run this command and the error was fixed. I hope it helpful for you!!