24 questions
1
vote
1
answer
579
views
TailwindCSS styling is not applied
I have the following project.
vite.config.js
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-...
8
votes
2
answers
13k
views
[Vue warn]: inject() can only be used inside setup() or functional components
I wanted to use the Toast component from PrimeVue library and I also wanted to create a nice re-usable service for it but I am getting this error. This doesn't seem to be a problem if I don't try to ...
15
votes
2
answers
15k
views
How to open a static website in localhost but generated with Vite and without running a server?
Note: the example I'm using is available on GitHub repository https://github.com/mary-perret-1986/primevue-poc
I created a simple project with Vue.js 3 + Vite + PrimeVue.
So far everything works like ...
7
votes
2
answers
18k
views
PrimeVue theme change
Apparently, in the last few PrimeVue updates there has been a PrimeVue.changeTheme() method that I would very much like to use. The documentation says that two things are required.
copying the ...
5
votes
1
answer
9k
views
how to add primevue css files to JHipster Project
I am trying to add primevue to my jhister with vue.js application. And I am following these steps.
1- run these comments
npm install primevue --save
npm install primeicons --save
2- add them to my ...
4
votes
2
answers
4k
views
Webpack Vue component with css <style> tags fails to build with Module parse failed: Unexpected token
Starting with a clean vue project, I was having issues building .vue components from PrimeVue.
These are ready made components and should really not fail to build.
Everytime I try to build, it fails ...
3
votes
3
answers
5k
views
PrimeVue + Tailwind conflict: Button background missing
I start with a relatively fresh Vue3 + PrimeVue + Tailwind setup.
My problem is that the PrimeVue button does not display correctly when I add Tailwind.
To test this, please have a look at the ...
2
votes
1
answer
3k
views
Prevent tab change on PrimeVue TabView component
I am using the TabView component from PrimeVue (Vue 3), and I want to stop the tab change if any changes are made by the user, the problem is that I don't know how. I've already tried passing the ...
2
votes
1
answer
7k
views
I am getting primevue error with vue jest test
I am writing a test with Vue jest. But when I say run:test "No PrimeVue Confirmation provided!" It shows that this error is caused by useToast() and useConfirm() services.
"...
2
votes
1
answer
3k
views
PrimeFlex margin not working inside Vue3 app
I want to apply some margin on PrimeVue elements inside my Vue3 app. Based on the example from the docs
https://www.primefaces.org/primevue/showcase/#/selectbutton
I have a working example with a ...
2
votes
0
answers
779
views
Carousel prime vue width decreases
The first slide has a normal width, but each subsequent one has less and less. Although I strictly follow the doc(. Please help me figure it out.
link to the website: https://hydralux-74de0.web.app/
...
2
votes
1
answer
436
views
Primevue FileUpload component custom error messages
I am using template (https://primevue.org/fileupload/#template), and would like to access maxFileSize error from a method in order to show it in a toast component. Is it possible?
1
vote
1
answer
383
views
Vue 3 reactivity differences Provide/Inject vs this.$slots.default
currently I am working on a PR to the primefaces/primevue repository, which will provide the ability to wrap Column components in custom components for the DataTable.
As you can see in the PR (see the ...
1
vote
1
answer
4k
views
How to add data dynamically to primevue Line chart from vuejs3?
I am trying to make a realtime chart with primevue Line Chart as described here:
https://www.primefaces.org/primevue/showcase/#/chart/line
At first I declared the Chart tag with data and options ...
1
vote
3
answers
4k
views
Filtered array in PrimeVue datatable?
I am new in primevue. I am using the datatable with filtering. I face a problem.
I want to access the array after the filter applied. But do not find any API to do that.
Can anyone help me? Thank ...