Whenever I try to import npm packages into my Visual Studio project, I often find myself puzzled by the fact that some packages are not recognized even after multiple folder refreshes.
https://i.sstatic.net/wiDwv.png
Despite having the react-google-maps
folder in my node_modules directory, Visual Studio fails to acknowledge its presence and highlights it as an error. As a result, relevant intellisense features also do not function properly. Oddly enough, it is able to detect the react
package!
What steps can be taken to ensure that Visual Studio effectively recognizes newly installed npm packages from the console so that they can be imported without any highlighted errors?