Cannot find module './data.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
add to tsconfig.json
{
...
"resolveJsonModule": true
}
}import {default as a} from "a.json";
a.primaryMain
Also in JavaScript:
- javascript number if .00 truncate
- start angular app server
- js show span for 5 seconds
- calculate rating out of 5
- nodejs print
- how to play sound on load js
- sort array based on another array
- jquery datepicker
- Create a server which serves at port 3000 and with node.js command prompt
- javascript create json object from array
- component unmount useeffect
- sort array with negative numbers
- check if isset variable js
- change array index position in javascript by up and down click
- how to shorten conditional statements javascript
- how to fetch first 10 characters of a string in node js
- java script member count embed
- Discord bot client login
- for each array javascript
- hello world javascript
- syntax for srcset in react
- .change() in pure js
- import fs node js
- javascript add items to array