Open andreimoment opened 5 years ago
does it work now ?
@x1nGoo not sure I understand your comment. This is not an intermittent issue -- and I haven't seen a new release?
Old post but I'm running against the same problem. BUT, if i do webpack build it works. Seems only in dev mode that the init is not working.
Webpack 4: import AOS from 'aos'; AOS.init(); don't work.
How do I import AOS? How do I troubleshoot the import?
I import jquery just above it, and it works, so module compilation works properly.
I do have
@import '../../node_modules/aos/dist/aos';
in my main.scss and it does hide the elements withdata-aos
attrubutes.If I do import using the CDN and the script tag, everything works.
This is:
Specifications
Expected Behavior
AOS should get imported and initialize
Actual Behavior
nothing happens
Steps to Reproduce the Problem