akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.3k stars 242 forks source link

How do you use vuera and VuePlugin using createApp? #166

Open alamorre opened 1 year ago

alamorre commented 1 year ago

Hey so it seems like later stages of Vue use createApp over import Vue from "vue"

Which makes the usage of this Plugin different. I tried the following code in a new project with Vite.js with no luck

import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";

import { VuePlugin } from "vuera";

const app = createApp(App);
app.use(VuePlugin);
app.mount("#app");

The error is "Cannot read properties of undefined (reading 'constructor')"

Any ideas on what's wrong?

vitjaz commented 1 year ago

Same issue. Any variants?

patrickspiegel commented 1 year ago

@alamorre @vitjaz please checkout the readme first. This project has been abandoned and a new project is available for vue 3.

cwadrupldijjit commented 1 year ago

I do plan to come back and work on this a bit more. I want to make the transition between the two libraries/frameworks to be more seamless and work better with their respective newer features. I began working on an update that would do that, but life has been difficult since I took this on, so naturally this project fell to the wayside a bit.

I'll be keeping a closer eye on this project and updating the issues and PRs with the latest progress. I'm sorta wondering if pushing this package to a new major release would be beneficial (major because of the amount of changes that will likely be necessary).