-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Instructions omit how to get "require" to work #50
Comments
Thanks for raising this. I made a test app, ran import Audio from 'audio' Tooling does not really care whether you use CJS (requires) or ESM (imports) anymore. But, that being said, maybe we should consider transitioning our packages and examples towards ESM, since lately it has became much more popular. I know who are in audio.js like using |
It imports it without error, but when I try to run any methods I get errors. I've screen shot an example here: https://imgur.com/a/wHLn5 When I do any web audio api oscillator work it is fine, it's just the audio methods that are not working. Again, when I look in the module folder and go into the audio folder I don't see much there. It looks as if the module is missing most of its requirements. Let me know if I am misunderstanding a step. |
Ah my bad, I installed the wrong package. The code under
|
Thank you. I will |
It now has a different error. Here's a screenshot: Here is a screenshot of my app.js file: |
Edited (sorry for the confusion). The title of this query is wrong.
I tried to use your library with react-create-app and the method "load" is simply not found. It does find the library however when required. When I go into the module folder and look in the audio folder it looks like most of the library is missing. I feel like I am missing an install step
The text was updated successfully, but these errors were encountered: