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

Class Properties not enabled #28

Closed
perezcato opened this issue Feb 27, 2020 · 1 comment
Closed

Class Properties not enabled #28

perezcato opened this issue Feb 27, 2020 · 1 comment

Comments

@perezcato
Copy link

Support for class properties is disabled in the library

@JamesBrill
Copy link
Owner

Hi @perezcato How are you consuming React Speech Recognition? The library does use class properties, but the published package is compiled to ES5. Are you somehow consuming the raw source file?

You would see a Babel error like Support for the experimental syntax 'classProperties' isn't currently enabled if you were trying to compile a file with class properties without enabling the correct Babel plugin. But given the package is already compiled for you, this shouldn't be an issue for you as a consumer.

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

2 participants