Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use jQuery #1

Open
farnetani opened this issue Dec 21, 2017 · 0 comments
Open

How to use jQuery #1

farnetani opened this issue Dec 21, 2017 · 0 comments

Comments

@farnetani
Copy link

I put in main.js:

import $ from 'jquery'

This made jquery work, but in a certain function of mine I'm having the following error:

Cannot read property 'document' of undefined

The error is in this part of the jquery code:

  if ( !w.document ) {
       throw new Error( "jQuery requires a window with a document" );

How to solve this?
I need to make jQuery work with Vuejs normally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant