loading...

re: JavaScript Import in VSCode IntelliSense VIEW POST

FULL DISCUSSION
 

code has no idea about the package inside node_modules, even in TypeScript, so you have to install types for those packages you need types declaration. You can manually install @types/styled-components, then code can provide auto import via its type definition.

img

 

Does that work in JavaScript projects?

 

Yes, my screen capture is a JavaScript project not a TypeScript project.

Code of Conduct Report abuse