Amit
Amit

Reputation: 245

Error: Set the experimentalDecorators option to remove this warning

I'm using Cypress version 3.3.1. I'm getting the following error:

Error: "TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."

PS: I've set "experimentalDecorators": true in tsconfig.json. Tried the following but it didn't work: https://github.com/cypress-io/eslint-plugin-dev/issues/4

Code where the error is being reported:

@observable public someVar: dataType;

Upvotes: 2

Views: 496

Answers (1)

Amit
Amit

Reputation: 245

I created the tsconfig.json under the test directory, i.e. my_project/__tests__/integration/tsconfig.json and set the experimentalDecorators as true.

{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}

Upvotes: 1

Related Questions