vue-i18n
vue-i18n copied to clipboard
TS2321: Excessive stack depth comparing types 'I18n<>'
Reporting a bug?
It seems that the upcoming TypeScript version will not handle the current implementation of vueI18n lightly. In version 4.5.1-rc this when you try to app.use(i18n) in your vue app you will get a pretty large error message.
Expected behavior
No error when using app.use(i18n)
Reproduction
Install TypeScript version 4.5.1-rc Create a vue3 app and try to use vueI18n
System Info
System:
OS: Windows 10 10.0.19042
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 2.35 GB / 15.75 GB
Binaries:
Node: 14.17.3
Yarn: 1.22.4
npm: 8.1.3
Browsers:
Edge: Spartan (44.19041.423.0), Chromium (92.0.902.67)
Internet Explorer: 11.0.19041.1
npmPackages:
@vue/apollo-composable: ^4.0.0-alpha.15 => 4.0.0-alpha.15
@vue/test-utils: ^2.0.0-rc.16 => 2.0.0-rc.16
vue: ^3.2.20 => 3.2.22
vue-i18n: ^9.1.8 => 9.1.9
vue-router-mock: ^0.0.3 => 0.0.3
Screenshot
No response
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion
Thank you for your reporting!
I've just tried to reproduce this issue, but I could not reproduce it. 😞 Could you give us your minimum reproduction codes (repo) please?
I recently installed a quasar project with i18n and chose 'install with npm', and encountered the same issue. Then created another quasar project with yarn (recommended option) and all was fine, saw no such issues. Don't know if it helps but yarn might be better at installing npm deps.