LinusBorg / portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
http://portal-vue.linusb.org
MIT License
3.89k stars 188 forks source link

Nuxt module is missing in 3.0.0 #391

Open maddocnc opened 1 year ago

maddocnc commented 1 year ago

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

rafaelragib commented 1 year ago

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

LinusBorg commented 1 year ago

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.

alexcroox commented 1 year ago

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.

darthf1 commented 1 year ago

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