Closed Shinigami92 closed 2 years ago
Thank you for your reporting!
I can't fully reproduce your package.js deps environment, so I tried minimal environments the below:
vue-cli
vue-cli-plugin-i18n
(enable TypeScript and vue-i18n-brdige
)@vue/composition-api
vue-tsc
However, Unfortunately, I could not reproduce this issue. :disappointed: when I ran vue-tsc in my environment, the type checking error did not occur.
I checked the .d.ts
generated by vue-i18n-bridge, and it imports from vue
. It seems to be a cause of this issue.
The bridge should maybe use vue-demi or just @vue/composition-api instead of vue
In about this, vue-i18n-bridge assumes migration using @vue/composition-api
. vue-demi
unfortunately does not.
Thank you for your reproduction repo! I'll try to check your repo!
Works 🎉 thx
Happy coding! :)
Reporting a bug?
Expected behavior
No errors should be thrown
Reproduction
Set up a simple project with vue 2, vue-tsc and i18n libs
System Info
Screenshot
Additional context
The bridge should maybe use
vue-demi
or just@vue/composition-api
instead ofvue
Validations