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

There is a issue with Vite and Vue 2 #389

Closed aliosmanmenekse closed 1 year ago

aliosmanmenekse commented 1 year ago

image image

it's happen on preview mode

LinusBorg commented 1 year ago

I won't be able to help you with just a screenshot and zero context.

My only suspicion would be that you need PortalVue 2, for Vue 2

npm install portal-vue@2
aliosmanmenekse commented 1 year ago

I won't be able to help you with just a screenshot and zero context.

My only suspicion would be that you need PortalVue 2, for Vue 2

npm install portal-vue@2

Okay lets me summarize my dependencies "portal-vue: 2.1.7" "vite": "3.1.7" "vue": "^2.7.14"

vite preview When ı run preview mode for vite, Vue.extend gets error from your package

if you need more details ı can comment

LinusBorg commented 1 year ago

It sounds like you don't have Vue 2 in the project, but you say you do, so yes I'd need more info - a reproduction preferably.

Also, the error does not really seem to be coming from portal-vue - your screenshot shows the error coming up in a component of yours.

aliosmanmenekse commented 1 year ago

it has beed solved image