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.
How to integrate PrimeVue with vue 3.0.0-rc.8
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Currently we're working on Vue 3 compatibility, by late September the first RC will be available.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try with PrimeVue 3.0.0-rc.1
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.
Hope it helps.
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests