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

Support for the experimental syntax 'classProperties' isn't currently enabled #3

Open
antonello-alfatauristudio opened this issue Jul 3, 2020 · 0 comments

Comments

@antonello-alfatauristudio
Copy link

antonello-alfatauristudio commented Jul 3, 2020

Just installed in my ionic/capacitor + react app and got this error after npm run start:

Failed to compile.

./node_modules/mangopay-client-react/lib/Client.js
SyntaxError: /Users/antonellogatto/workspace/toefrom-ionic-app/node_modules/mangopay-client-react/lib/Client.js: Support for the experimental syntax 'classProperties' isn't currently enabled (16:26):

  14 |     }
  15 | 
> 16 |     static mangoPayClient;
     |                          ^
  17 | 
  18 |     /**
  19 |      * Get Client Instance

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
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