How to integrate PrimeVue with vue 3.0.0-rc.8

UI Components for Vue
Post Reply
thaitieuloi
Posts: 1
Joined: 03 Sep 2020, 16:32

03 Sep 2020, 16:37

I can't import interface from primevue
Ex:

import ToastService from "primevue/toastservice";
const app = createApp(App);

app.component("ToastService", ToastService);

app.mount("#app");
export default app

https://scontent-sin6-1.xx.fbcdn.net/v/ ... e=5F76340A

error: Uncaught TypeError: _vue.default is not a constructor

Could you help me, please, thanks.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Sep 2020, 12:58

Currently we're working on Vue 3 compatibility, by late September the first RC will be available.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Sep 2020, 12:59

Try with PrimeVue 3.0.0-rc.1

Charlie42
Posts: 1
Joined: 03 Oct 2020, 17:59

03 Oct 2020, 18:02

Hello all,

Can we install PrimeVue 3 with npm ?
When I run "npm install primevue", it's PrimeVue 2 whose is installed ...

Thank in advance.

Charlie

dopi
Posts: 11
Joined: 27 Aug 2020, 11:17

05 Oct 2020, 17:29

I don't know if it can help but I installed it by specifing the version in the package.json as in the example application https://github.com/primefaces/primevue-quickstart, and then running the npm install command.

Alternatively you can directly install it via command line by specifing the actual last version.

Code: Select all

npm install primevue@3.0.0-rc.2
Hope it helps.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Oct 2020, 18:06

Install should be;

npm install primevue@^3.0.0-rc.1 --save

Also on 12th 3.0.0 final will be released and it will be;

npm install primevue@^3.0.0 --save

I've updated the docs and will be up soon as well with this information on setup page.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests