loading...

re: JavaScript Import in VSCode IntelliSense VIEW POST

FULL DISCUSSION
 

Hi Matthias,
You have to import both packages

Not remember well the styled components but I think it's something like

import { styled } from 'styled-components'

And for the prop types something like :

import PropTypes from 'prop-types'

I hope it helps.

 

Thank you!

The problem however is, that VSCode does not include the auto import options in the IntelliSense menu (see my screenshot in the article).

 

I see,

I didn't know VS Code auto import also works for packages, it just work for components in my case.

Code of Conduct Report abuse