8

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" });
            }
        });
    }
1
  • maybe your mistake is confirm.require({ Commented Sep 7, 2021 at 10:27

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.