direflow icon indicating copy to clipboard operation
direflow copied to clipboard

WebComponent Properties - Support for the experimental syntax 'decorators-legacy' isn't currently enabled

Open Transfusion opened this issue 3 years ago • 1 comments

I am trying to pass an attribute into the WC generated by Direflow like <awesome-component componentTitle="New Title"></awesome-component>, according to these instructions: https://direflow.io/properties

My root component is a class component, so I'm trying to use the @DireflowConfiguration decorator. npm run babel-plugin-transform-decorators-legacy --dev fails because there is no such script. I installed babel-plugin-transform-decorators-legacy with --save-dev, added "experimentalDecorators": true and "emitDecoratorMetadata": true to tsconfig.json, and added

"babel": {
    "plugins": [
      "transform-decorators-legacy",
      "transform-class-properties"
    ]
  }

to package.json, after which compilation failed with the error in the title. My root component is in .jsx (I have "allowJs": true in tsconfig.json, if that matters).

Transfusion avatar Sep 15 '20 04:09 Transfusion

Hi @Transfusion Thanks for creating this issue.

We will look into this shortly.

SimonHoiberg avatar Sep 16 '20 03:09 SimonHoiberg