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

how to remove red underline error in vscode? (typescript)

$
0
0

I am developing a app with React-Native and I am using vscode as a code editor.When I import some image or package, I got these red and yellow underline error.How to fix this?

One thing that I can't understand is only "Fontawesome" has no such error, but both "MaterialCommunityIcons" and "Ionicons" have red underline error. (Line 4,5,6)

When I mouse over the line 1 yellow underline, it shows me following.

ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the approval dialog.

When I mouse over the line 5,6 red underline, it shows me following.

Could not find a declaration file for module 'react-native-vector-icons/MaterialCommunityIcons'.

I uninstall and installed "react-native-vector-icons" package several times but same error.(exactly not error, I think just type error. Code working well.)I installed following extensions.

enter image description here

enter image description here


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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