Closed richard-edwards closed 1 year ago
Hey there! Thanks for the report :100: , have you tried adding
"type":"module"
to your package.json?
Yes, forgot to mention that. Already added that as I saw it on another thread.
On Tue, 29 Nov 2022 at 07:51, Leon L. @.***> wrote:
Hey there! Thanks for the report, have you tried adding
"type":"module"
to your package.json?
— Reply to this email directly, view it on GitHub https://github.com/Subwaytime/vite-aliases/issues/47#issuecomment-1330606128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXRROB2GFW7DWRAWRD6YLWKX34PANCNFSM6AAAAAASNVOS2A . You are receiving this because you authored the thread.Message ID: @.***>
-- Regards,
Richard Edwards
It seems that this will be fixed in the upcoming new version! Probably will be released on next weekend, atm i am a bit busy! So no promises :sweat_smile:
My project has waited 3 years so far so that is good enough for me :) Thanks for the update!
@richard-edwards Hey there! So i got an fix in the pipeline, which i will deploy after Christmas or starting next Year!
I found out what the issue is basically, vite-aliases
is trying to combine your existing aliases from the vite config with the generated ones. The issue here beeing, if you set resolve.alias
as an object inside the vite.config.ts/js
it wont work, but it will work with an array till the fix is ready, so hopefully thats a workaround for now!
Awesome, thanks for the update!
On Thu, 22 Dec 2022 at 15:02, Leon L. @.***> wrote:
@richard-edwards https://github.com/richard-edwards Hey there! So i got an fix in the pipeline, which i will deploy after Christmas or starting next Year! I found out what the issue is basically, vite-aliases is trying to combine your existing aliases from the vite config with the generated ones. The issue here beeing, if you set resolve.alias as an object inside the vite.config.ts/js it wont work, but it will work with an array till the fix is ready, so hopefully thats a workaround for now!
— Reply to this email directly, view it on GitHub https://github.com/Subwaytime/vite-aliases/issues/47#issuecomment-1363292213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXRRPPLMTND7HPLLUXIR3WOSXTVANCNFSM6AAAAAASNVOS2A . You are receiving this because you were mentioned.Message ID: @.***>
-- Regards,
Richard Edwards
Steps to reproduce
Site runs fine
Add vite-aliases
Run yarn dev and you will see the error