config missing!

UI Components for Vue
Post Reply
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);
What might be wrong?

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 ... ckage.json

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: ... 2/#/locale

Posts: 38
Joined: 23 Oct 2020, 09:28

23 Mar 2021, 08:57

Please change your PrimeVue version if you are using Vue 2, try to use 2.4.0

Best Regards,

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest