microsoft / microsoft/TypeScript
error TS5071: Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
TypeScript Version: 3.4.3
Search Terms: TS5071
Expected behavior:
Should compile for module: 'system'. I use a json-loader plugin within systemJS to load these json files. Earlier we used the .d.ts for json but with the latest upgrade it fails with the above error.
Related Issues:
https://github.com/Microsoft/TypeScript/issues/26224
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the TS5071 diagnostic with TypeScript 3.4.3 and module set to 'system', using the json-loader/SystemJS setup described in the issue. Read related issue 26224 for context; done should be defined as an agreed behavior for using resolveJsonModule with system module generation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100