0

Iam getting this error on all of my .js files

Syntax error: BreadCrumb.js: Unexpected token (114:43)

  112 |         v={visible}
  113 |         b={barrs}
> 114 |         nameBartagemAttxl={currentBartagem?.Name || ""}
      |                                            ^
  117 |       />

I've tried many config on my tsconfig.json but nothing works...

My guessing is that all the .js files arent recognizing a more recent version of the 'ES'

Any ideias?

this is my tsconfig.json configuration file at the moment

{
  "compilerOptions": {
    "experimentalDecorators": true,
    "suppressExcessPropertyErrors": true,
    "target": "es6",
    "lib": [
      "es6",
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": false,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "checkJs": false,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "strictNullChecks": false,
    "forceConsistentCasingInFileNames": true,
    "strictPropertyInitialization": false,
    "module": "esnext",
    "noImplicitAny": false,
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve"
  },
  "include": [
    "./src/**/*.ts",
    "./src/**/*.tsx"
  ],
  "exclude": [
    "src/**/*.js",
    "src/**/*.jsx",
  ]
}

this is my version TypeScript: "typescript": "3.7.2"

0 Answers0