-
-
Notifications
You must be signed in to change notification settings - Fork 363
Type error using $t ($n, $, d) after update Vue from 3.2.39 to 3.2.40 #1190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same issue with the package intlify/nuxt-3 |
In my case, we discovered that we had a problem with our yarn.lock file and it was creating a problem with the versions but I think there is still a problem related to the new Vue version. |
any update about this issue? We also discovered that if the import explicitly |
Sorry, recently, I'm really busy @nuxtjs/i18n and conference preparation (I'm organizer of vue fes japan). nuxtjs/i18n v8 beta releasing & the conference is over, I will be back on vue-i18n for a bit. |
Sorry, I could not reproduce this issue. |
no problem, I will try to add later a link using the above samples. |
I don't know why I can't reproduce the bug now. There is a type-check script inside the package.json file. We had problems a few weeks ago after updating some Vue versions so we decided to import always the methods from the composable in order to use them in the templates. So, what would be the recommended option to use the methods? With the $ (HelloWorld.vue) or without it (HelloWorld-no-dollar.vue). I think the most common one I saw on the documentation was the second one (without the $). |
Thank you! I’ll this PR is closed. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Reporting a bug?
After updating the Vue version to 3.2.40, the $t inside the Vue template files throws a TypeScript typing error:
With the previous version (3.2.39) the type error does not appear.
Expected behavior
No type errors in the Vue files
Reproduction
an "i18n.ts" file:
The main.ts file:
Just a Vue file:
System Info
The text was updated successfully, but these errors were encountered: