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

phucvo0709
0
phucvo0709
commented a year ago

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

0
lucpotage
76
lucpotage
commented a year ago

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.

0
Informations
Question โ€ข Unresolved
#c7001 - Created a year ago