{confirm.require({message:'Are you sure you want to continue?',header:'Confirm',icon:'pipi-exclamation"> "'Symbol()' not found injection error in Vuejs"-PHP Chinese Network Q&A
"'Symbol()' not found injection error in Vuejs"
P粉759457420
P粉759457420 2023-08-24 22:37:33
0
1
458

I am using confirmdialog in primevue and encountered the following error:

[Vue Warning]: Injection "Symbol()" not found

I have no idea what this error means or how to fix it. Can anyone please help me? Here is my source code:

const deleteCategory = () => { confirm.require({ message: 'Are you sure you want to continue? ', header: 'confirm', icon: 'pi pi-exclamation-triangle', accept: () => { notification.showMessage("Success!"); }, reject: () => { router.push({ name: "CategoriesPage" }); } }); }


P粉759457420
P粉759457420

reply all (1)
P粉006847750

Error[Vue warn]: injection "Symbol()" not foundHas nothing to do with the code you provided. When usinginject: ['injectedVar']in a nested component, if it is not provided from the parent component,[Vue warn]: injection ... not foundwill appear.

So you should check what you are trying to inject and where it needs to be served from. For more information, see the documentation:Provide/Inject

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!