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

Console Error but the animations still work #831

Closed
kaweepatinn1 opened this issue Sep 3, 2023 · 1 comment
Closed

Console Error but the animations still work #831

kaweepatinn1 opened this issue Sep 3, 2023 · 1 comment

Comments

@kaweepatinn1
Copy link

This is:

  • Bug

Specifications

  • AOS version: 2.3.1
  • OS: Windows 10
  • Browser: Chrome

Expected Behavior

No console error on page load

Actual Behavior

Console error:
aos.js:1 Uncaught TypeError: Cannot read properties of null (reading 'setAttribute')
at Object.A [as init] (aos.js:1:1620)
at aos.js:1:5
but the aos animations still work

Steps to Reproduce the Problem

$(document).ready(function(){
  AOS.init({
    disable: 'phone tablet mobile', //not sure if this is the proper syntax, but removing it still causes the error, so I've kept it in
  });
  });

as the javascript, being called at

<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="static/js/aos.js"></script>

in html

live:
https://nanomotions.org/index.html

@kaweepatinn1
Copy link
Author

I dont know how but it seems to have fixed itself? I committed and pushed and the issue disappeared so I guess this issue is solved

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