Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No PrimeVue Confirmation provided! #7292

Closed
brunoneve opened this issue Feb 21, 2025 · 3 comments
Closed

No PrimeVue Confirmation provided! #7292

brunoneve opened this issue Feb 21, 2025 · 3 comments
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team

Comments

@brunoneve
Copy link

brunoneve commented Feb 21, 2025

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..

@tugcekucukoglu
Copy link
Member

Cannot replicate the problem. How can we see the problem?

@tugcekucukoglu tugcekucukoglu added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label Feb 21, 2025
Copy link

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.

@brunoneve
Copy link
Author

It's works now, my problem was in vite build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
None yet
Development

No branches or pull requests

2 participants