question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'fn' of undefined react

See original GitHub issue

I am using the jquery like this

import OwlCarousel from 'react-owl-carousel';
import $ from 'jquery';

window.jQuery = $;
window.$ = $;
global.jQuery = $;

but I am still facing this issue

TypeError: Cannot read property ‘fn’ of undefined react kindly please help me on this, please…?

jquery version is 3.4.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

6reactions
superrcoopcommented, Jul 28, 2019

i get this issue too, only solution that worked for me was to inject query in your ‘index.html’ like so

<script
  src="https://code.jquery.com/jquery-3.4.1.min.js" </script>
2reactions
pidoxycommented, May 6, 2021

i get this issue too, only solution that worked for me was to inject query in your ‘index.html’ like so

<script
  src="https://code.jquery.com/jquery-3.4.1.min.js" </script>

same solution worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'fn' of undefined in react js
I have installed the owl carousel(npm install react-owl-carousel2). While running the code it is ...
Read more >
Cannot read property 'fn' of undefined in reactjs owl slider
Hi, I am facing below error during implementation of owl slider in reactjs: TypeError: Cannot read property 'fn' of undefined. Please help me...
Read more >
Uncaught TypeError: Cannot read property 'fn' of undefined
Hello, I am trying to replicate the date min/max search as on https://datatables.net/extensions/datetime/examples/integration/datatables.html ...
Read more >
Uncaught TypeError Cannot read property fn of undefined
I am using jquery, backbonejs, underscorejs, and bootstrap for my project and I sometimes get this error in ... ; }); Can someone...
Read more >
React TypeError: Cannot read property function of undefined
SET YOUR LIKE THERE ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found