Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Missing class properties transform. #27

Open
francocasasD24 opened this issue Sep 29, 2022 · 0 comments
Open

Missing class properties transform. #27

francocasasD24 opened this issue Sep 29, 2022 · 0 comments

Comments

@francocasasD24
Copy link

francocasasD24 commented Sep 29, 2022

Hi how are you?
I'm using "@nosferatu500/react-sortable-tree": "^4.1.2",
with react & react-dom version ^17.0.2 with typescript v~3.8.3.

I have the same error with node version 12.13.1 and 16.12.0.

./node_modules/@nosferatu500/react-sortable-tree/index.js

SyntaxError: node_modules/@nosferatu500/react-sortable-tree/index.js: Missing class properties transform.

 1757 |   }
  1758 |
> 1759 |   startDrag = ({
       |   ^
  1760 |     path
  1761 |   }) => {
  1762 |     this.setState(prevState => {
    at transformFile.next (<anonymous>)
    at run.next (<anonymous>)
    at transform.next (<anonymous>)
import SortableTree from '@nosferatu500/react-sortable-tree';

<SortableTree
              treeData={treeData}
              onChange={treeData => this.setState({ treeData })}
              canDrag={this.getFalse}
              generateNodeProps={({ node }) => this.generateNodeProps(node)}
            />

Could anyone help me to solve this please?

Thanks

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

No branches or pull requests

1 participant