I've started a react-native project generated using the cli. The app seems to be working just fine but i've notice that the import points to typescript cache instead of local node_modules. I'm not even using typescript.
IDE: vscode 1.19.3
import React, { Component } from 'react';
module "/Users/MyMac/Library/Caches/typescript/2.6/node_modules/@types/react/index"
This is expected for JavaScript. These @types
files power VS Code IntelliSense for npm modules such as react
. The react
module itself will still be imported from your local node_modules
See our documentation on Automatic type acquisition for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With