egidiusmengelberg / nuxt-aos

A Nuxt module that adds Animate On Scroll
https://www.npmjs.com/package/nuxt-aos
MIT License
67 stars 5 forks source link

esm js error #7

Closed tolgahanbeyazoglu closed 10 months ago

tolgahanbeyazoglu commented 1 year ago

@egidiusmengelberg When I add the dependency, I encounter this error after the project runs, what is the reason?

aos.esm.js?v=56ed4182:2 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/lodash.debounce/index.js?v=56ed4182' does not provide an export named 'default' (at aos.esm.js?v=56ed4182:2:8)

egidiusmengelberg commented 1 year ago

Yeah I know, please read issue #6. Because of a busy schedule i'm currently not able to fix the issue. If anyone wants to create a PR I would really appreciate it.

egidiusmengelberg commented 1 year ago

There is a PR ready to be merged at the AOS library, https://github.com/michalsnik/aos/pull/423. But it seems the project is dead. Last update was 5 years ago. I'll try and email the author next week. If that doesn't work I could create a fork and update it myself. But that would not be a elegant solution. Anybody any ideas?

17630966776 commented 11 months ago

You can try this nuxt3-aos

tolgahanbeyazoglu commented 10 months ago

Yes, it works smoothly thanks to the module you specified.