Open ArnavK-09 opened 7 months ago
<ConfirmDialog>
component in your template?nuxt.config.ts
:
export default defineNuxtConfig({
modules: ['nuxt-primevue'],
primevue: { composables: { include: ['useConfirm'] } }
})
whats wrong its not working mate
@joemaylor 🥲
What I think fixed it for me was the following:
// nuxt.config.ts
primevue: {
options: {
ripple: true,
},
directives: {
include: '*', // Set this to import all
},
composables: {
include: '*', // Set this to import all
},
},
:/ i tried that way
But didn't worked
Describe the bug
Reproducer
import { useConfirm } from "primevue/useconfirm"; const CNF = useConfirm(); CNF.require({ message: "Are you sure you want to proceed?", });
PrimeVue version
latest
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Edge
Steps to reproduce the behavior
No response
Expected behavior
should work and show dialog