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

Compatibility with Deno #234

Open
PetrosiliusPatter opened this issue Jan 6, 2024 · 1 comment
Open

Compatibility with Deno #234

PetrosiliusPatter opened this issue Jan 6, 2024 · 1 comment

Comments

@PetrosiliusPatter
Copy link

I'm trying to use this package with Deno, importing it via esm.sh, like this:

import * as m21j from "https://esm.sh/music21j@0.14.6"
console.log("m21j", m21j)

But I get the following erro:

error: Uncaught (in promise) ReferenceError: Audio is not defined
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:378:850
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:382:10470
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:382:10476
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:373:18569
    at Object../node_modules/midicube/releases/midicube.js (https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:373:18574)
    at rt (https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:383:1051430)
    at Module../src/main.ts (https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:187:4536)
    at rt (https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:383:1051430)
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:383:1052046
    at https://esm.sh/v135/music21j@0.14.6/denonext/music21j.mjs:383:1052077

Any chance we can get this package compatible with Deno?

@mscuthbert
Copy link
Member

I have no idea what Deno is, so you'd need to debug this yourself. Glad to take a PR.

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