Skip to content

TypeError: Cannot assign to read only property 'exports' of object '#<Object>' #335

@JorgesOS7

Description

@JorgesOS7

Versions

  • ^1.7.14
  • 2.0 ( not tested )

Describe the bug

When using import { useToast } from "vue-toastification/composition/nuxt" with composition-api, nuxt throws this error in the console.
image
After searching, I saw that this error occurs when we mix require and export.
The solution was to go to the index.js file in node_modules/vue-toastification/composition/nuxt/index.js and remove the word export

image

and sorry for the english 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions