Now.sh build breaking due to: Support for the experimental syntax 'decorators-legacy' isn't currently enabled

前端 未结 3 593
别那么骄傲
别那么骄傲 2021-01-29 03:15

Expected:

After adding decko (Support for decorators) as well as adding support for experimetalDecoractors in my tsconfig.js

3条回答
  •  清酒与你
    2021-01-29 03:44

    i'm seeing something similar on my end, but i think you can do this:

    {
      "presets": ["next/babel"],
      "plugins": [["@babel/plugin-proposal-decorators", { "legacy": true }]],
      "env": {...}
    }
    

    Seems like you can have global plugins for all the things, vs setting it all up for each one. would be yawnsome otherwise.

提交回复
热议问题