Unable to parse file: /path/to/file
Error: Error: Line XX: Unexpected token ...
...
description: 'Unexpected token ...'
{
"compilerOptions": {
"alwaysStrict": true,
"allowJs": true,
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"lib": [
"ESNext",
"ESNext.AsyncIterable",
"DOM"
],
"module": "commonjs",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./dist",
"rootDir": "./",
"paths": {
"~/*": [
"./*"
],
"@/*": [
"./*"
]
},
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"target": "ES2018",
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
}
// Typescript version
Version 4.3.2
Why the pareser is not understanfing the syntax "..."? Is there any configuration I am missing?
I am getting the following error:
My
tsconfig.json:My only
.tsfile in/srcStep to reproduce:
Why the pareser is not understanfing the syntax "..."? Is there any configuration I am missing?