portal-vue icon indicating copy to clipboard operation
portal-vue copied to clipboard

Nuxt module is missing in 3.0.0

Open maddocnc opened this issue 2 years ago • 4 comments

Nuxt module is still noticed in readme, but missing in package.

maddocnc avatar Dec 20 '22 06:12 maddocnc

same here. Getting error in the package ✖ Nuxt Fatal Error
│ │
│ Error: Cannot find module '/home/user/projects/example/node_modules/portal-vue/nuxt' │

rafaelragib avatar Dec 20 '22 11:12 rafaelragib

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.

LinusBorg avatar Dec 20 '22 11:12 LinusBorg

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.

alexcroox avatar Jan 06 '23 10:01 alexcroox

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)
})

darthf1 avatar Apr 13 '23 13:04 darthf1