config missing!

UI Components for Vue
Post Reply
arqsergio
Posts: 1
Joined: 21 Dec 2020, 22:08

21 Dec 2020, 22:36

I am starting with primevue, follow all the steps from the video on the Get Started page and when I try the first run got this message:

Code: Select all

 ERROR  Failed to compile with 1 error                                                                                                                                                                             17:30:23
This dependency was not found:

* primevue/config in ./src/main.js

To install it, you can run: npm install --save primevue/config
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
When I look into the Primevue folder, there is no Config file (js/json).
Already re-installed primevue many times with differente versions and get the same error.

My main.js file:

Code: Select all

import { createApp } from 'vue'
import App from './App.vue'

import PrimeVue from 'primevue/config'

import 'primevue/resources/themes/bootstrap4-dark-blue/theme.css'       //theme
import 'primevue/resources/primevue.min.css'                            //core css
import 'primeicons/primeicons.css'                                     //icons

const app= createApp(App);
app.use(PrimeVue)
app.mount('#app')
What might be wrong?
Thanks

shockerovip
Posts: 1
Joined: 04 Jan 2021, 12:24

04 Jan 2021, 12:27

try changin primevue to an older version in your package.json
for example change to "primevue": "3.1.0",

then run npm install to update your packages.

use this as reference https://github.com/primefaces/primevue- ... ckage.json

bodnarlajos
Posts: 9
Joined: 05 Jun 2020, 10:59
Location: Hungary

19 Feb 2021, 16:07

I'm using 2.0.7 and having the same issue...

The documentation says I have to use that:
https://www.primefaces.org/primevue/sho ... 2/#/locale

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests