Skip to content

Using Beet with ReactJS #19

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

Open
lukecd opened this issue Jul 19, 2022 · 1 comment
Open

Using Beet with ReactJS #19

lukecd opened this issue Jul 19, 2022 · 1 comment

Comments

@lukecd
Copy link

lukecd commented Jul 19, 2022

Hi ... Perhaps this is super obvious, but I'm stuck for sure. Do you have guidelines on how to use Beet.js with React?

Thanks!

@lukecd
Copy link
Author

lukecd commented Jul 19, 2022

Hmmm, perhaps the problem isn't the react integration.

I tried including the library with
import * as Beet from 'beet.js';

And I end up getting this in my dev console

bootstrap:27 Uncaught ReferenceError: arguments is not defined
at ./node_modules/webworkify/index.js (index.js:1:1)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/wa-metro/lib/wa-metro.js (wa-metro.js:1:1)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/wa-metro/index.js (index.js:1:1)
at options.factory (react refresh:6:1)

Nothing explicitly references Beet.js, but removing the import does cause the error to go away. 

Besides Beet, I'm currently using Tone and Tonal with no problems.

Thanks

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