I\'m really getting crazy because I can\'t find a solution for this. What I want to archive is to import a JSON file with a configuration into my TypeScript file. I\'ve lear
Examples on the web that use declare module "*.json" work because Webpack is configured to load JSON files.
declare module "*.json"
If you don't want to bother with that you can use var instead of import:
var
import
var json = require('../config.json');
as suggested in this answer