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

Nuxt module is missing in 3.0.0 #391

Open
maddocnc opened this issue Dec 20, 2022 · 4 comments
Open

Nuxt module is missing in 3.0.0 #391

maddocnc opened this issue Dec 20, 2022 · 4 comments

Comments

@maddocnc
Copy link

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

@rafaelragib
Copy link

rafaelragib commented Dec 20, 2022

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

@LinusBorg
Copy link
Owner

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
Copy link

alexcroox commented Jan 6, 2023

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
Copy link

darthf1 commented Apr 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants