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 #12

Open
minusplusminus opened this issue Jun 7, 2019 · 0 comments

Comments

@minusplusminus
Copy link

Hi, I have the issue when using react-app-rewired 2.1.1 I was wondering if this could be fixed when added as an deps directly?

`./node_modules/react-autosuggest-geocoder/src/geocoder.js
SyntaxError: /Users/martijnmellema/Documents/Development/Projecten/Creask/creask-web/node_modules/react-autosuggest-geocoder/src/geocoder.js: Support for the experimental syntax 'classProperties' isn't currently enabled (8:20):

6 |
7 | export class ReactAutosuggestGeocoder extends React.Component {

8 | static propTypes = {
| ^
9 | url: React.PropTypes.string.isRequired,
10 | sources: React.PropTypes.string.isRequired,
11 | apiKey: React.PropTypes.string.isRequired,

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