I'd like to use ViteJS instead of Web Pack in our project.
You can read more about vite here :https://vitejs.dev/guide/
I tried to create a update project to use ViteJS but I always have errors.
4 │ import Vue from 'vue';
The error shown because Vue v3 has no default export member.
If the current code can support Vite, great! Can you provide a demo for it?
Thanks!
Hi, can I get access to the provided portal link? Now I am getting "Access Denied" page.
Hi,
this error still persists on the Schedule component. Using newest version and also 19.4.40.
Hi,
am getting the same error with @syncfusion/ej2-vue-querybuilder using version 19.4.48.
"@syncfusion/ej2-vue-querybuilder": "*", |
Hi,
I am getting this error in a newly created project.
vue - 3.2.37
vite - 3.0.0
@syncfusion/ej2-vue-buttons - 20.2.38
@syncfusion/ej2-vue-base - 20.2.38
Hi Anna,
For the vitejs version above v3.0.0, they have introduced a breaking changes that the vitejs above v3.0.0 will only run in the node version above 14.18.0. If you are using the node version below v14.18.0, you might face this issue. Please refer the below vitejs release notes.
Vitejs: https://github.com/vitejs/vite/blob/v3.0.0/packages/vite/CHANGELOG.md#300-beta9-2022-07-08
For your convenience we have prepared a sample in the vitejs version 3.0.0 and it is working fine at our end when using 14.18.3 node version. Please refer to the below sample.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/EJ2-vitejs-582547777
Please get back to us if you have any queries.
Regards,
Ragunath S
Hi,
I get this error with thee current grid component of syncfusion and can't make it work.
No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
Using the following packages:
"@syncfusion/ej2-vue-grids": "20.3.62",
"vue-class-component": "8.0.0-rc.1"
"vite": "3.0.9",
"vue": "3.2.38"
What needs to be changed?
Can not really switch to an older vue version as in your provided vite example because of other packages i also using? Is there another fix needed in your grid component?
Hi Steffen,
After evaluating the query, we found that you are using pnpm platform in your application. Currently, we don't have support for pnpm platform with our controls. So, we have planned already and logged the feature request from our side and it will be available in any of our future release.
https://www.syncfusion.com/feedback/38812/need-to-provide-our-vue-3-components-support-in-the-pnpm
Please get back to us if you need further assistance.
Regards,
Anbumani Rajendracholan