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

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

Open
JorgesOS7 opened this issue May 12, 2022 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@JorgesOS7
Copy link

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 😄

@lukaszarpak
Copy link

Solved here: #337 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants