Cannot find module "jquery"
See original GitHub issueI am porting over some old code that uses jQuery. For now, I need jQuery in my project (will slowly get rid of it). I added it to my dependencies
in package.json and ran npm install
. I see jquery
under node_modules
now.
In my component file, when I add import $ from 'jquery';
, I see this error:
Uncaught Error: Cannot find module "jquery" webpackMissingModule
I referred to https://github.com/facebookincubator/create-react-app/issues/614 but still no luck.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (10 by maintainers)
Top Results From Across the Web
Uncaught Error: Cannot find module 'jquery' - Stack Overflow
Uncaught Error: Cannot find module 'jquery' · npm cache clean , npm install jquery (to my app folder) · npm install --save jquery...
Read more >Uncaught Error: Cannot find module 'jquery' #2631 - GitHub
Am I missing some dependency in package.json? What I have already tried: npm cache clean, npm install jquery (to my app folder); npm...
Read more >jquery - npm
JavaScript library for DOM operations. Latest version: 3.6.3, last published: 7 days ago. Start using jquery in your project by running `npm ...
Read more >cannot find module jquery spfx - SPGuides
cannot find module jquery spfx. The error will comes if jQuery is not installed in SPFx solutions. Run the below command to install...
Read more >Module not found: Can't resolve 'jquery' error | bobbyhadz
To solve the error "Module not found: Error: Can't resolve 'jquery'", make sure to install the jquery package by opening your terminal in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
if anyone uses jquery 3.x , please use
import 'jquery/src/jquery';
No worries, if you have any problems please file issues! We’re happy to help.