resolveJsonModule issue -> error TS5055: Cannot write file '/Users/Me/Project/en-AU.json' because it would overwrite input file.
jpike88 opened this issue · 0 comments
jpike88 commented
TypeScript Version: 2.9.1
Search Terms: resolveJsonModule TS5055
Code
Getting error:
error TS5055: Cannot write file '/Users/Me/Project/en-AU.json' because it would overwrite input file.
{
"compileOnSave": true,
"compilerOptions": {
"moduleResolution": "node",
"target": "ESNext",
"noEmitHelpers": true,
"lib": [
"esnext", "dom"
],
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"noUnusedParameters": true,
"skipLibCheck":true
}
}Expected behavior:
The recent version of VSCode (includes TS 2.9.1) seems to play fine, signalling no warning on an imported JSON file.
Actual behavior:
When running tsc, I get this error:
error TS5055: Cannot write file '/Users/Me/Project/en-AU.json' because it would overwrite input file.
I tried adding "exclude" and "include" instructions to tsconfig.json, it didn't fix it.