Skip to content

Instantly share code, notes, and snippets.

@lekhnath lekhnath/config.json
Created Jun 15, 2017

Embed
What would you like to do?
Cannot import / require json files in javascript projects with checkJs enabled
{
"name": "Lekhnath Rijal"
}
const config = require('./config.json');
{
"compilerOptions": {
"checkJs": true,
"module": "commonjs",
"baseUrl": "./",
"target": "es5",
"lib": [
"es6"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.