Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

VSCode doesn't import component in typescript

$
0
0

VSCode with typescript has this awesome feature where if you do CMD+. on a module that hasn't been imported yet, it gives you the option to automatically import that module or import all modules that are missing.

It's particularly helpful when copying a bunch of JSX, and letting vscode handle all the imports. This works great but with one exception, it won't import the component. I figured it's probably because it refers to https://developer.mozilla.org/en-US/docs/Web/API/Text/Text.

Is there a way to point typescript in the right direction?

Example below:

Example


Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>