-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
Excuse me for writing my question here but i guess its a bug.
I have issue when run tsc
error TS5055: Cannot write file 'index.d.ts' because it would overwrite input file.
my tsconfig.json:
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"newLine": "LF",
"preserveConstEnums": true,
"pretty": true,
"experimentalDecorators": true
},
"exclude": [
"node_modules",
"typings"
]
}TypeScript Version: 1.8.10
This issue solved when:
- Exclude
index.tsintsconfig - Run
tsc index.ts - Turn
declarationoff intsconfig - Rename
indextxto foo.ts!
I have same issue when i rename index.ts to foo.ts and change package.json to
"typescript": {
"main": "foo.ts"
}tsc error:
error TS5055: Cannot write file 'index.d.ts' because it would overwrite input file.
content of index file no mater, any code content has same issue!
What can i do for fix it ?
Source code: https://github.com/AliMD/Node.js-Telegram-Bot-API/tree/v0.0.2-0
Thank you in advance and excuse me again for asking my question here.
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code