Open ElBidouilleur opened 2 years ago
I suggest using @vueuse/rxjs
instead in vue3
I suggest using
@vueuse/rxjs
instead in vue3
Did this work to anybody instead vue-rx? I get the same error:
vue-rx.esm.js:310 Uncaught TypeError: Vue.use is not a function
at vue-rx.esm.js:310:7
at custom-ui.js:2:241
at custom-ui.js:3:3
package.json
"vue": "^3.4.19",
"rxjs": "^6.6.7",
"vue-rx": "^6.2.0",
"vuex": "^4.1.0"
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"@vue-macros/reactivity-transform": "^0.4.3",
"@vue/compiler-sfc": "^3.4.19",
"vite": "5.1.1",
"vite-plugin-static-copy": "^1.0.1"
},
import { createApp } from 'vue';
import Vue from 'vue';
import custom from "./custom.vue";
import VueRx from 'vue-rx';
const app = createApp(custom);
app.use(VueRx);
app.mount('#app')
I suggest using
@vueuse/rxjs
instead in vue3Did this work to anybody instead vue-rx? I get the same error:
vue-rx
is incompatible with vue3
because vue3
didn't have Vue.use
API(app.use
). And it's recommended to use Composition API in vue3
. So i recommend using VueUse
.
see this document for more information: https://vueuse.org/functions.html#category=%40RxJS
Hi
How initialize vuerx in vue3 because the old version Vue.use not work in vue3 When I write app.use because app.use want Plugin_2 properties
Do you have an solution
Thanks