-
Notifications
You must be signed in to change notification settings - Fork 219
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
Prevent TypeScript warnings from "$t" state variable. #1025
Comments
Closed the PR associated with this issue and self-removed. Initial solution of this problem made the situation worse. It looks like the problem originates from local VS Code settings, and not the codebase. We continue to investigate. |
Just checking, @mattburnett-repo, you're using the solution that's detailed in localization to get rid of the warnings, right? |
Yes, @andrewtavis. I'm using 'vue-i18n.d.ts' as described in the link you provided. |
@mattburnett-repo to continue the conversation from the e2e PR where you said the troubleshooting steps didn't work. The root cause of all of this is shared dependencies between the container environment and local environment by mounting the This means that those troubleshooting steps are not a permanent fix. It's very easy to re-create this bug every time you run a local command after using the frontend container or vice-versa, and then you have to run the troubleshooting steps again each time it breaks. (except you might be able to skip The short term fix could be shadowing the I also mentioned it on the run yarn locally issue: #1021 (comment) |
Also you may have to restart vscode after the troubleshooting steps for vscode to pick of the fixed typescript imports from nuxt |
I also suspect this bug can be caused if you ever accidentally run |
Maybe we can add a quick note that people e should look out for yarn being installed in the root directory and also telling people to restart VS Code? |
Yeah, adding that to the docs is a good idea |
Terms
Behavior
In VS Code, in the 'Problems' panel, there are numerous warnings along the lines of:
"Property '$t' does not exist on type ...". It looks like these warnings are related to the i18n functionality.
There is no negative performance impact from these warnings, but the cause of these warnings should be resolved, so that the warnings stop appearing.
The text was updated successfully, but these errors were encountered: