A
Alokai•15mo 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•15mo ago
Hi @nikita935 👋 , can you give some more info about the project and your environment?
Nikita
Nikita•15mo ago
Eee, just working on it
rohrig
rohrig•15mo ago
I think I found the spot your showing and I'm not getting the same TS Errors.
No description
rohrig
rohrig•15mo ago
have you tried restarting you're TS Server or IDE?
Nikita
Nikita•15mo 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•15mo ago
perhaps clearing the project cache in WebStorm might help
Nikita
Nikita•15mo ago
let me google how to do this))
rohrig
rohrig•15mo 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
Nikita•15mo 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•15mo 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
Nikita•15mo ago
of course:)
FabianClemenz
FabianClemenz•15mo 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
Nikita•15mo 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•15mo 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
Nikita•15mo ago
Yes, I did that, for some reason it did not help ^^))
Want results from more Discord servers?
Add your server