Closed
Description
TypeScript Version: 3.0.0-rc
Search Terms:
resolveJsonModule, composite project, TS6307
Code
Repro at https://github.com/strax/ts-3-json-bug-repro
Expected behavior:
With composite: true
and resolveJsonModule: true
set in tsconfig.json
, JSON modules are resolved in the compilation like they are when the composite
compiler option is not set.
Actual behavior:
Running tsc
gives the following error:
error TS6307: File '/src/hello.json' is not in project file list. Projects must list all files or use an 'include' pattern.
In addition, trying to include src/hello.json
in the files
property fails with
error TS6054: File '/src/hello.json' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
Playground Link:
Related Issues: