MilkshakeStudio / nuxt-lenis

Nuxt adaptation for @darkroomengineering/lenis
https://github.com/darkroomengineering/lenis
30 stars 4 forks source link

Pre-transform error: Failed to resolve import '.../node_modules/nuxt-lenis/dist/runtime/components/Lenis.vue" #8

Closed Aybee5 closed 3 months ago

Aybee5 commented 3 months ago

In version 1.2.0 when you try using the <lenis> component, I get the Failed to resolve import from './node_modules/nuxt-lenis/dist/runtime/components/Lenis.vue'

Here is a reproduction https://stackblitz.com/edit/nuxt-starter-9jmmdx?file=app.vue

and importing the component also instead of using auto imports results in the error

ERROR  Importing directly from module entry-points is not allowed. [importing nuxt-lenis from app.vue]
Slgoetz commented 3 months ago

Looking into this now.

Slgoetz commented 3 months ago

@Aybee5 Please install v1.2.2 to fix the issue

Aybee5 commented 3 months ago

Thank you, it works fine now