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

TypeError: Cannot read property 'querySelectorAll' of undefined #425

Open
illycz opened this issue Feb 18, 2020 · 1 comment
Open

TypeError: Cannot read property 'querySelectorAll' of undefined #425

illycz opened this issue Feb 18, 2020 · 1 comment

Comments

@illycz
Copy link

illycz commented Feb 18, 2020

I'm using AOS library, where in the code is: var e=document.querySelectorAll("[data-aos]");.
In HTML I have element with data-aos attribute, but in console I get: [TypeError: Cannot read property 'querySelectorAll' of undefined]

Any suggestions?

Thanks

@illycz
Copy link
Author

illycz commented Feb 18, 2020

Here is full log:

Error: Uncaught [TypeError: Cannot read property 'querySelectorAll' of undefined]
    at reportException (/Users/illy/Sites/_Templates/ceskoplatikartou/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:62:24)
    at notifyMutationObservers (/Users/illy/Sites/_Templates/ceskoplatikartou/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:166:11)
    at Promise.resolve.then (/Users/illy/Sites/_Templates/ceskoplatikartou/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5) TypeError: Cannot read property 'querySelectorAll' of undefined
    at ne (file:///Users/illy/Sites/_Templates/ceskoplatikartou/public/assets/javascripts/app-72f79bbe0ac08933b804.js:1:12280)
    at ce (file:///Users/illy/Sites/_Templates/ceskoplatikartou/public/assets/javascripts/app-72f79bbe0ac08933b804.js:1:12915)
    at file:///Users/illy/Sites/_Templates/ceskoplatikartou/public/assets/javascripts/app-72f79bbe0ac08933b804.js:1:2903
    at Array.forEach (<anonymous>)
    at MutationObserverImpl.a [as _callback] (file:///Users/illy/Sites/_Templates/ceskoplatikartou/public/assets/javascripts/app-72f79bbe0ac08933b804.js:1:2615)
    at notifyMutationObservers (/Users/illy/Sites/_Templates/ceskoplatikartou/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:158:14)
    at Promise.resolve.then (/Users/illy/Sites/_Templates/ceskoplatikartou/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5)
./public/assets/stylesheets/app-212828ef47.css has been saved!

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