HT @marciplan.
In our code components or code overrides, we can import a json file like so:
import * as rows from './rows.json'
This works, but we'll get an error in the editor:
To fix it:
tsconfig.json
file{
"compilerOptions": {
"target": "es2015",
"lib": ["es2015", "dom"],
"module": "commonjs",
"jsx": "react",
"outDir": "build",
"resolveJsonModule": true,
"sourceMap": false,
"declaration": false
},
"exclude": ["node_modules", "build"]
}