ts-json
ts-json copied to clipboard
Import JSON file in Typescript
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
Errors
Hi, when I try the following : ```import * as config from '../config/config.json';``` I get: ```[ts] Cannot find module '../config/config.json'.``` any idea ?