From 5735620b711a7f8b3279d0b2125e6ba64e7afad6 Mon Sep 17 00:00:00 2001 From: Chris Shepherd Date: Tue, 29 Jun 2021 13:31:34 +0100 Subject: [PATCH] Allow TypeScript to resolve JSON modules --- template/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/tsconfig.json b/template/tsconfig.json index b69702fd..26f17a56 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -45,7 +45,8 @@ "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - "skipLibCheck": false /* Skip type checking of declaration files. */ + "skipLibCheck": false, /* Skip type checking of declaration files. */ + "resolveJsonModule": true /* Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. */ /* Source Map Options */ // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */