Injection "Symbol()" not found error Vuejs
Asked Answered
N

1

7

I am using confirmdialog in primevue and get this error:

[Vue warn]: injection "Symbol()" not found

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

const deleteCategory = () => {
        confirm.require({
            message: 'Are you sure you want to proceed?',
            header: 'Confirmation',
            icon: 'pi pi-exclamation-triangle',
            accept: () => {
               notification.showMessage("Successfully!");
            },
            reject: () => {
              router.push({ name: "CategoriesPage" });
            }
        });
    }
Nader answered 7/9, 2021 at 9:17 Comment(1)
maybe your mistake is confirm.require({Bathroom
A
9

The error [Vue warn]: injection "Symbol()" not found isn't related to the code you provided. [Vue warn]: injection ... not found can be reproduced when using inject: ['injectedVar'] in a nested component without actually providing it from a parent.

So you should check what you trying to inject and where it needs to provided from. See the docs for more information: Provide / inject

Aerostatic answered 7/9, 2021 at 15:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.