Hello! I am using Sage 8.5.3 to build a website. Running into issues with a Bower Package (AOS), and I believe the issue to be that the Javascript files from the package are not being loaded, since the css appears to load as the asset I wish to animate on scroll is not displayed. I have only installed the bower package with bower install aos --save, and not made any other changes to any manifest.json or so. Am I missing something in regards to how to include JS packages into Sage?
Is that the only error in the javascript console? Did you also check the network section of DevTools to see if there are any files that aren’t loading correctly?
Please can you share your bower.json file?
Lastly, what happens if you try running AOS.init() directly in the javascript console once the page has loaded?
When you get this message, is it a standard JS console error? Is that literally all it says or are there some other details (eg. “Uncaught ReferenceError”). Does it appear red in the console? Maybe you can provide us with a screenshot of your console…
It looks like the AOS code is not properly included in your dist/scripts/main.js
I have solved the issue now, and it was all my own fault. In fact it is quite humorous.
At first I forgot the AOS.init(). When I had included it I had instead managed to write “aos-data” rather than “data-aos” in the HTML selector. So, it was all my mistake