ts-json icon indicating copy to clipboard operation
ts-json copied to clipboard

Import JSON file in Typescript

Results 4 ts-json issues
Sort by recently updated
recently updated
newest added

Given I have the typings.d.ts file, when I try to import the json file using import statement in the angular project, the build should not complain about 'Cannot find module...

While running, the following error comes ``` Error: ReferenceError: Can't find variable: exports at global code in file:///e:/repos/****/src/****/unittests/spec/app.js (line 4) While Running:E:\repos\****\src\****\UnitTests\spec\app.ts ``` Any help would be appreciated

Hi, when I try the following : ```import * as config from '../config/config.json';``` I get: ```[ts] Cannot find module '../config/config.json'.``` any idea ?