I am using angular4, in a simple component I am trying to load a json, the json and component are on the same path/folder.
import metacoin_artifacts from './MetaCoin.json';
I also tried
import metacoin_artifacts from 'MetaCoin.json';
all of them throw me a error Cannot find module './MetaCoin.json'.
The first approach used to work on one project before, but now it can't work anymore, I don't know what is the difference between them.