intlify / vue-i18n-composable

Composition API for vue-i18n in Vue 2.x
MIT License
44 stars 10 forks source link

To make it work I had to copy locally the file vue-i18n-composable/src/index.ts #10

Open stephane303 opened 3 years ago

stephane303 commented 3 years ago

I think there is something wrong in the way you export the module to npm.

I had the following error:

[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.

Even though I followed your instructions, and Vue.use(VueCompositionAPI)was called. I think a new Vue instance was created.

The only way I could make the module work is to copy locally the file.

It might be related to https://github.com/intlify/vue-i18n-composable/issues/9

My setup:

@vue/composition-api@1.0.0-rc.12 vue-i18n@8.24.4