I have a very simple react material-ui project.
I recently added a jsconfig.json
to the top level folder
{
"compilerOptions": {
"target": "es6",
"checkJs": true,
"jsx": "react"
},
"exclude": [
"node_modules",
"data",
"docs",
".cache",
"dist"
]
}
Which is working fine. But there are a few errors that VSCode is finding that I would like to remove:
Cannot find module '@material-ui/core/Button'.
Cannot find module '@material-ui/core/styles'.
Cannot find module 'easy-peasy'.
The imports are working fine, but I rather not just disable ts-check. All these imports are in the ./node-modules tree (including easy-peasy).
(BTW, the code is all JavaScript and not TS).
import { action, createStore, StoreProvider, useStore, useActions, thunk } from 'easy-peasy';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';