vueuse / vueuse-vue2-example

VueUse + Vue 2 + Vue CLI working example
43 stars 16 forks source link

Demo doesn't work #14

Open MinSomai opened 2 years ago

MinSomai commented 2 years ago

Here's the forked sandbox.

https://codesandbox.io/s/github/vueuse/vueuse-vue2-example/tree/master/?file=/src/App.vue

and this is the first error. Error in data(): "TypeError: vueDemi.ref is not a function"

This is happening in my local project too.

Composition API works fine if I remove vueuse.

chenxeed commented 2 years ago

I'm curious in this demo source code.

I can't find the code to install the Vue 2 Composition API (Vue.use(VueCompositionAPI)), so how can the composition API works out of the box? 🤔 CMIIW.

MinSomai commented 2 years ago

I'm curious in this demo source code.

I can't find the code to install the Vue 2 Composition API (Vue.use(VueCompositionAPI)), so how can the composition API works out of the box? thinking CMIIW.

tried that too. doesn't seem to budge.