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

Private fields do not work ? #346

Closed
dartess opened this issue Apr 17, 2019 · 1 comment · Fixed by #347
Closed

Private fields do not work ? #346

dartess opened this issue Apr 17, 2019 · 1 comment · Fixed by #347

Comments

@dartess
Copy link

dartess commented Apr 17, 2019

What should I do to make private class fields work?

Now:

TypeError: Argument must be an Identifier or a Literal

When

import React, { Component } from 'react';

class MyComponent extends Component {
  #isPrivate = 0;

  render() {
    // ...
  }
}

export default MyComponent;
@danez
Copy link
Collaborator

danez commented Apr 17, 2019

Thanks for reporting, this will be fixed in the next version.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants