Closed r0lodex closed 7 months ago
Good day @r0lodex,
What version of Nuxt are you using? Currently the module works fine (well, there are still some issues like types resolution and couple of bugs..) in my environment (Windows, any Nuxt@^2.x.x and Nuxt@3.6.4), maybe something went wrong because of using Bun or with Nuxt upgrade to version more than 3.6.4 - they have some Windows issues so I can't upgrade right now to test.
I'll try to take a look with Bun. Anyway, please provide more info about your environment - it might help.
For now, I believe it is possible to use the package as a custom Nuxt plugin and import stylesheet directly, I wrote about it here.
Thank you for responding. I'm using Nuxt 3.8.1 on MacOS Sonoma 14.2 I'll try on my end with npm or yarn.
Cheers and thank you again
I just read that you have a postinstall npm hook and that might be the reason it doesn't work with bun
.
I've tried with npm
and yarn
and it works fine.
For bun
users — https://bun.sh/guides/install/trusted
As of Bun v1.0.17, the top 500 npm packages that use postinstall scripts are now run by default. Please try again with Bun v1.0.17 and let me know if you still run into this.
@Jarred-Sumner well, I don't believe this package will ever be in the top 500 :D
@r0lodex does it work fine if you specify the package in trustedDependencies
?
I would write about it in the readme file
@MorevM I tried the trustedDependencies
field & it works, thank's!
I wrote a note about usage with Bun. Thank you guys for pointing that out :)
Actual behavior
When building, throws error
Expected behavior
Should've resolved the import
Steps to reproduce
bun add @morev/vue-transitions/nuxt
Environment
Additional context
No response
Possible solution
Possibly updating the package to have the styles imported properly.