How to use PrimeVue with VitePress? #3332
Replies: 4 comments 1 reply
-
Did you ever figure this out? I am getting errors on build (not dev): "Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension" using node v20.11, vitepress v1.0.0-rc.40 and primevue 3.47.1 |
Beta Was this translation helpful? Give feedback.
-
https://github.com/primefaces/primevue-examples/tree/main/vite-unstyled-tailwind |
Beta Was this translation helpful? Give feedback.
-
Me too. |
Beta Was this translation helpful? Give feedback.
-
I just tested it, and you might need to add "type": "module" in your please refer to vitepress docs: https://vitepress.dev/guide/getting-started
|
Beta Was this translation helpful? Give feedback.
-
Is it not possible to use PrimeVue with VitePress?
I am getting this error:
button.esm.js:127 Uncaught (in promise) TypeError: _ctx.cx is not a function
for this simple usage:
My setup:
.vitepress/theme/index.ts:
Beta Was this translation helpful? Give feedback.
All reactions