You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an error only in the production application.
When running in dev mode, this error does not appear, and everything works fine. However, after running npm run build, my application displays a white screen, and the console shows the following error:
"No PrimeVue Confirmation provided!"
I followed the entire documentation.
I added ConfirmationService in main.js and also included ConfirmDialog in App.vue, as shown below:
main.js
`
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config';
import ToastService from 'primevue/toastservice';
import ConfirmDialog from 'primevue/confirmdialog';
import ConfirmationService from 'primevue/confirmationservice';
import Tooltip from 'primevue/tooltip';
import money from 'v-money3'
import App from './App.vue'
import router from './router'
import Notifications from '@kyvg/vue3-notification'
import './assets/index.css'
We're unable to replicate your issue, if you are able to create a reproducer by using PrimeVue Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.
Hello everyone,
I am facing an error only in the production application.
When running in dev mode, this error does not appear, and everything works fine. However, after running npm run build, my application displays a white screen, and the console shows the following error:
"No PrimeVue Confirmation provided!"
I followed the entire documentation.
I added ConfirmationService in main.js and also included ConfirmDialog in App.vue, as shown below:
main.js
`
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config';
import ToastService from 'primevue/toastservice';
import ConfirmDialog from 'primevue/confirmdialog';
import ConfirmationService from 'primevue/confirmationservice';
import Tooltip from 'primevue/tooltip';
import money from 'v-money3'
import App from './App.vue'
import router from './router'
import Notifications from '@kyvg/vue3-notification'
import './assets/index.css'
const app = createApp(App)
app.use(createPinia())
app.use(PrimeVue,{
theme: 'none'
});
app.use(ConfirmationService)
app.use(ToastService);
app.use(Notifications)
app.use(money);
app.use(router)
app.directive('tooltip', Tooltip);
app.component('ConfirmDialog', ConfirmDialog);
app.mount('#app')
`
app.vue
`<script setup lang="ts">
import Toast from 'primevue/toast';
import ConfirmDialog from 'primevue/confirmdialog';
</script>
Has anyone experienced this situation and managed to resolve it?
Thanks..
The text was updated successfully, but these errors were encountered: