A
Alokai•2y ago
Nikita

Help with TS

In one day after starting Yarn Dev, I started getting such a message in the console, however, I did nothing in this part of the application (like my colleague too ^^)
No description
No description
16 Replies
rohrig
rohrig•2y ago
Hi @nikita935 👋 , can you give some more info about the project and your environment?
Nikita
NikitaOP•2y ago
Eee, just working on it
rohrig
rohrig•2y ago
I think I found the spot your showing and I'm not getting the same TS Errors.
No description
rohrig
rohrig•2y ago
have you tried restarting you're TS Server or IDE?
Nikita
NikitaOP•2y ago
The strangest thing is that my colleague, with whom we work on same project, does not have this error, just like me on my other laptop too. Maybe I have something inside my webstorm? I restart ide - nothing change. Btw, this error does not break the project, everything works fine
rohrig
rohrig•2y ago
perhaps clearing the project cache in WebStorm might help
Nikita
NikitaOP•2y ago
let me google how to do this))
rohrig
rohrig•2y ago
I found this . . . https://vuejs.org/guide/typescript/composition-api.html#typing-provide-inject which show you how to add a type explictly
TypeScript with Composition API | Vue.js
Vue.js - The Progressive JavaScript Framework
Nikita
NikitaOP•2y ago
i trying to clean webstorm cache - did not help me, and also try one time start project on second pc and dont have this error, so problem with my webstorm, try to figure out how to fix this
rohrig
rohrig•2y ago
okay, please let us know if you figure out what the problem was so if someone in the future runs into the same thing it might help them out when they read this 🙂
Nikita
NikitaOP•2y ago
of course:)
FabianClemenz
FabianClemenz•2y ago
I had sometimes the same problem. Running yarn build then closing IDE and reopening it worked for me. It is really lazy when it comes to importing types and stuff
Nikita
NikitaOP•2y ago
thanks for reply, i dont remember i try your advise or note, but novaday its gone..) but i keep in mind your words for future, if this error comeback to me🫡
skirianov
skirianov•2y ago
whenever you get some weird errors, I would suggest you to open any *.ts file and hit Ctrl+Shift+P -> Restart TS Server It's sometimes get mad
No description
Nikita
NikitaOP•2y ago
Yes, I did that, for some reason it did not help ^^))
skirianov
skirianov•2y ago
I had this stupid error few times to a point I reinstalled VS Code completely 🦨
Want results from more Discord servers?
Add your server