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 ^^)
16 Replies
Hi @nikita935 👋 , can you give some more info about the project and your environment?
Eee, just working on it
I think I found the spot your showing and I'm not getting the same TS Errors.
have you tried restarting you're TS Server or IDE?
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
perhaps clearing the project cache in WebStorm might help
let me google how to do this))
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
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
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 🙂
of course:)
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 stuffthanks 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🫡
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 madYes, I did that, for some reason it did not help ^^))
I had this stupid error few times to a point I reinstalled VS Code completely 🦨