Open tony95271 opened 3 years ago
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.
I had a similar issue. I found two solutions to fixing it.
Solution 1. from stackoverflow.com After re-confirming I had the nuxt and vue-toastification modules installed in my node_modules folder,
I copied the following code as the only content in that file:
import { defineNuxtPlugin } from '#app'
import Toast from 'vue-toastification'
import 'vue-toastification/dist/index.css' // if needed
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(Toast)
})
Solution 2. from askjavascript.com After re-confirming I had the nuxt and vue-toastification modules installed in my node_modules folder,
declare module 'vue-toastification'
Versions
Describe the bug
Cannot find module 'vue-toastification' or its corresponding type declarations error raise in vue3 ts.
my package.json settings
Expected behavior
Instead of breaking the page, it should run and up.
Steps to reproduce
Reproduction Steps:
yarn add vue-toastification@next
Your Environment
Additional context