TS5069

error TS5069: Option ‘declarationMap’ cannot be specified without specifying option ‘declaration’ or option ‘composite’.

Broken Code ❌

tsconfig.json
1
2
3
4
5
6
{
"compilerOptions": {
"declaration": false,
"declarationMap": true
}
}

Fixed Code ✔️

You have to activate the “declaration” property before you can activate “declarationMap”:

tsconfig.json
1
2
3
4
5
6
{
"compilerOptions": {
"declaration": true,
"declarationMap": true
}
}