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.

Dumb NPM question

See original GitHub issue

Great library, but how do I use this with jquery required by NPM?

For example:

myFile.js

import $ from 'jquery';
import isInViewport from 'is-in-viewport';

// Throws an error: 
// Uncaught ReferenceError: jQuery is not defined(…) isInViewport.js:182 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
donpinkuscommented, Mar 14, 2017

thanks @zeusdeux!

1reaction
zeusdeuxcommented, Mar 13, 2017

Gonna close this. Feel free to reopen or open a new issue if bundling still doesn’t work. Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Flaws: 5 stupid NPM packages - DEV Community ‍ ‍
This library is used to find out if (yep, actually) a number is equal to ten thousand. There are actually some people depending...
Read more >
7 Ridiculous NPM Packages You Won't Believe Exist
This package aims to answer the most sought-after question: What is the true meaning of life? And 542 developers sought the answer this...
Read more >
Dumb noob question - css npm packages : r/node - Reddit
Greetings, I'm working on porting a C# app to NodeJS (mainly to get experience). I'd like to use the bootstrap css framework for...
Read more >
dumb CPU chart question - Network Performance Monitor (NPM)
They represent the min and max values for the CPU during that interval. For the third interval in the graph, the average measured...
Read more >
stupid-server - npm
Possibly Askable Questions · Why would you build such a thing? · But X other thing already does this · Will you add...
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