-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite Compatibility #581
Comments
For anyone comes to this. |
Vite support is in our high priority list, I'll be keeping this issue updated. |
Any update on this ? |
Planned for next week! |
It's very good news! |
Resolved for 3.2.0-rc.1, I'll create a simple Quickstart example repo as well. |
When will it be possible to install this RC? Do you know? I see no such tag on the repo. |
Later this week. |
After a long search, came by this thread. Good to see that this is going to be picked up! |
Try 3.2.0-rc.1 please and let us know how it goes. Also we have a starter app now. |
Though the starter app works fine (with warnings about <script setup> being experimental), I can't get 3.2.0-rc.1 to import with TypeScript:
I'm using the vue-ts preset with |
I can confirm that, as @lewebsimple said, PrimeVue 3.2.0-rc.1 is not working as expected if you are using TypeScript. I moved back to |
You can get around that issue with |
That gets around the hard stop on being able to use 3.2.0-rc.1 with vite/typescript at all... but in the browse console it still throws:
On the line:
|
Following up on myself and @EthanHaid... this imports DOES work and doesn't gripe about anything in the console:
Also, because the impact is even more evident on this module, the following gets the PrimeVue ToastService to work in vite/typescript:
|
@slumtrimpet I'm getting a missing definition error when importing from Any idea ? |
Is there any plan to include this in the vue2 version as well? I have a really hard time to get Vue 2.7 with PrimeVue 2 to run under vite but it's an old legacy project that cannot be updated to PrimeVue 3 that easily. |
The problem
When using Vue 3 and Vite for building PrimeVue components can't be used as they throw a
Uncaught SyntaxError: import not found: default
in the browser console.Vite also give a warning for PrimeVue:
[vite] cannot resolve entry for dependency primevue.
Reproduce
The text was updated successfully, but these errors were encountered: