Closed Aellynd closed 1 year ago
Looks like this was already fixed but a release wasn't tagged. I'll get that out today. Thanks!
@Aellynd Okay I've published v2.0.18 which fixes this problem. Thanks for reporting it! ✨
@Aellynd Okay I've published v2.0.18 which fixes this problem. Thanks for reporting it! ✨
Thank you for the quick response, it's very much appreciated! It solves my problem 👍
For my component library I have been using Vite, Vue3 and Heroicons to build and release the library as an NPM package. Recently I have been trying to upgrade Vite, but to no avail. I keep receiving the same error:
I looked into this error further an discovered the following in
my-library.mjs
:and since Vue has no default export, this appears to be causing issues. The snippet above made me realise the error was coming from svgs and my mind turned towards the heroicons/vue package. When I remove all the imports of heroicons/vue, the error disappears and the library is working as expected. Hence my issue on this board.
I have created a minimal reproduction repository at: https://github.com/Aellynd/vite-heroicons-issue
Please note the issue only started after upgrading to Vite >= 4.1.0 which has made me think it may have something to do with rollup or esbuild. Sadly I have little experience in this area, so I will happily hear your thoughts.
Thanks in advance! -- Riki
P.S. this is my first bug report, so please let me know if you need any additional information.