portal-vue
portal-vue copied to clipboard
Nuxt module is missing in 3.0.0
Nuxt module is still noticed in readme, but missing in package.
same here. Getting error in the package
✖ Nuxt Fatal Error
│ │
│ Error: Cannot find module '/home/user/projects/example/node_modules/portal-vue/nuxt' │
I'll remove it from the docs for now. I don't have time to write a nuxt integration now, haven't figured out how it works for v3 yet.
PR welcome for this feature.
Could we list this as a breaking change in the release notes please for others? Just upgraded and it broke my builds due to this.
You can create your own plugin:
~/plugins/portal.ts
import { defineNuxtPlugin } from '#app'
import PortalVue from 'portal-vue'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(PortalVue)
})