I am trying to get started with PrimeVue so I was following the instructions on their website (install PrimeVue).
I ran through the following steps:
npm create vue@latest
npm install
npm run dev
npm install primevue
npm install primeicons
npm install @primevue/themes (not sure why the '@')
Updated the main.js file to the following:
import { createApp } from 'vue'
import App from './App.vue'
import PrimeVue from 'primevue/config';
import 'primevue/resources/themes/lara-light-blue/theme.css';
import 'primevue/resources/primevue.css';
import 'primeicons/primeicons.css';
import InputText from 'primevue/inputtext';
import Button from 'primevue/button';
import Toast from 'primevue/toast';
createApp(App).use(PrimeVue).mount('#app')
When trying to run it, I get the following error:
Failed to resolve import "@primevue/resources/themes/lara-light-blue/theme.css" from "src/main.js". Does the file exist?
I checked the whole directory and was not able to locate two of the following files:
‘primevue/resources/themes/lara-light-blue/theme.css’;
‘primevue/resources/primevue.css’;
What am I missing?
Note: I did purchase the product and received the .zip file but trying to run ‘npm install <primevue .zip file>’ got errors.
Thank you
3