underscore
underscore2mo ago

express types

I was creating a server using express and even after type annotating the request and response correctly, I get this error. One of the most weird behavior is, when I did setup the project initially, everything was working fine. The type annotation, the auto-suggestion, everything. When I closed the file and opened it again, the type annotation is there, but there's no auto-suggestion, and i get this weird error.
No description
2 Replies
underscore
underscoreOP2mo ago
similarly with this file. When I initially created the file, everything was fine. I closed and reopened it again, now i don't get the autosuggestion.
No description
underscore
underscoreOP2mo ago
I just restarted the vscode and everything is working fine now

Did you find this page helpful?