vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

TS2321: Excessive stack depth comparing types 'I18n<>'

Open sschneider-ihre-pvs opened this issue 4 years ago • 2 comments
trafficstars

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

sschneider-ihre-pvs avatar Nov 17 '21 11:11 sschneider-ihre-pvs

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?

kazupon avatar Nov 22 '21 09:11 kazupon

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.

SKMan avatar Nov 28 '21 15:11 SKMan