NPM package not working for me

For some reason, i can’t use a npm package when i install using npm, only works using CDN (tried with Swiper.js and GSAP). im really getting upset because i think i’m missing something very obvious but just cant figure out what is exactly. To test it, i created a new project with the essentials: index.html, style.css and app.js. Used npm init and then installed swiper and finnaly copy-pasted exactly the code of the documetation.

My guess is that im forgetting or missing something about npm. Is that it or is it something else?

Any help is apreciatte :slight_smile:

Do you have a repo? Or at least some code?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.