question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The new decorators proposal is not supported yet

See original GitHub issue

You must pass the "legacy": true option to @babel/plugin-proposal-decorators

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
captain-xucommented, Apr 23, 2018

change the roadhog version to 2.2.0, and try again @xjchenhao @sam-dingkang @acpplife

0reactions
poyidingcommented, Apr 23, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing "The new decorators proposal is not supported yet ...
Module build failed: Error: [BABEL] /path/to/project/src/main.js: The new decorators proposal is not supported yet. You must pass the `"decoratorsLegacy": ...
Read more >
Adding computed decorator causes a TypeError
I'm using babel 7 with @babel/plugin-proposal-decorators , transform-class-properties and @babel/plugin-transform-runtime plugins. – BugHunterUK.
Read more >
Enabling decorators · MobX
Also, many compositional patterns are currently not possible with decorators, until the stage-2 proposal has been implemented by all transpilers. For this ...
Read more >
Stage 3 decorators and more RegExp features! - Babel.js
We just published Babel 7.19.0! This release updates our implementation of the decorators proposal, which reached Stage 3 in March.
Read more >
JavaScript metaprogramming with the 2022-03 decorators API
So far, TypeScript has not supported a newer version of the decorators ... Babel closely tracked the evolution of the decorator proposal, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found