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

Use jquery error "jQuery requires a window with a document"! #3287

Closed
phucvo0709 opened this issue Apr 30, 2018 · 3 comments
Closed

Use jquery error "jQuery requires a window with a document"! #3287

phucvo0709 opened this issue Apr 30, 2018 · 3 comments
Labels

Comments

@phucvo0709
Copy link

phucvo0709 commented Apr 30, 2018

I tried many methods and tutorials but still failed. "jQuery requires a window with a document" I do not know how to fix it now.

2
3
4

@ghost ghost closed this as completed Apr 30, 2018
@ghost ghost added the cmty:question label Apr 30, 2018
@lucpotage
Copy link
Sponsor Contributor

lucpotage commented Apr 30, 2018

I think you should import jQuery as a plugin with no SSR and not as a webpack plugin.
See the docs here: https://nuxtjs.org/guide/plugins/.

Tell me if it works.

@phucvo0709
Copy link
Author

I tried it but it err $ is not defined and jQuery requires a window with a document

@lock
Copy link

lock bot commented Nov 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants