Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorator error when using @ variables in actions #69

Open
AprilArcus opened this issue Sep 22, 2022 · 0 comments
Open

Decorator error when using @ variables in actions #69

AprilArcus opened this issue Sep 22, 2022 · 0 comments

Comments

@AprilArcus
Copy link

AprilArcus commented Sep 22, 2022

This error is produced on the current master, 396e9250c8afd5d7d7e5658951b0d89f8bd97dd9.

It appears that the legacy decorators plugin is being introduced here: https://github.com/GerHobbelt/recast/blob/master/parsers/_babel_options.ts#L29

It looks like a workaround was committed at 625fcce but that it hasn't yet been built into dist/cli-cjs.js

JisonParserError: 
production rule action code block does not compile: Leading decorators must be attached to a class declaration (64:66)
    
  Erroneous area:
63:     | end_of_file {
^^....................^
64:                 parser.addError(yy.myFunction(@$))
^^..^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65:             }
^^..^^^^^^^^^^^^^
66:     ;
67: 

Related: #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant