I have been playing around with vitesse, which is an opinionated elaboration of a vite/vue3 environment. The newest diamond templates are said to support vite*, but It's not obvious to me how to integrate the two. The documentation ( https://www.primefaces.org/diamond-vue/#/documentation ) refers to vue-cli, which doesn't work with vite, at present. Also, the product description says, "Diamond is powered by Vue CLI". If Diamond is powered by Vue CLI, and Vue CLI and vite are not compatible, how can it also support vite?
Is there documentation for incorporating Diamond into a vite 2/ vue 3 setup? What about the opposite direction, viz., adding vite 2 to the newer diamond templates, that supports vue 3?
* as per: tugce.kucukoglu 09 Feb 2021, 09:44, who wrote: "PrimeVue 3.2.0 supports Vite and in a couple weeks all PrimeVue templates will be updated PrimeVue 3.2.0"
* Instruction for Diamond -> Vite 2, and Vite 2 -> Diamond
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
A project generated by Vue CLI and a Vite project nearly have same folder structure (public/index.html is an exception). The instructions in the Integration with an Existing CLI Project section in the documentation is still same.
Add styles in main.jsnpm install primevue primeicons
import 'primevue/resources/primevue.min.css';
import 'primeicons/primeicons.css';
import './App.scss';
- Copy the public/assets folder to your projects folder with the same name
- Copy all src/App*.vue files to the src folder of your application.
running: npm install primevue primeicons
resulted in the installation of primevue 2.4.1. I imagine this is by design. As per Apr 16 announcement, primevue is now up to version 3.4.0.
Is 2.4.1 the default to accommodate vue2? And should I simply run npm i primevue@latest primeicons@latest for my vue3/typescript/vitesse project?
resulted in the installation of primevue 2.4.1. I imagine this is by design. As per Apr 16 announcement, primevue is now up to version 3.4.0.
Is 2.4.1 the default to accommodate vue2? And should I simply run npm i primevue@latest primeicons@latest for my vue3/typescript/vitesse project?
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
For Vue 2, PrimeVue 2.4.1 and for Vue 3 PrimeVue 3.4.0 is latest version.
Yes, Vue 3 just run npm i primevue@latest primeicons@latest
Yes, Vue 3 just run npm i primevue@latest primeicons@latest
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests