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.
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.Does that work in JavaScript projects?
Yes, my screen capture is a JavaScript project not a TypeScript project.