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

Only works on node 16, doesn't work versions above #12

Open
m41w4r3exe opened this issue Nov 19, 2023 · 1 comment
Open

Only works on node 16, doesn't work versions above #12

m41w4r3exe opened this issue Nov 19, 2023 · 1 comment

Comments

@m41w4r3exe
Copy link

Thank you bazilions for the amazing library!

For anyone facing similar issue: Webscore.ready throws error below for any node versions above 16, like 18.x.x or 20.x.x.

`node:internal/deps/undici/undici:11372
Error.captureStackTrace(err, this);
^

TypeError: Failed to parse URL from /Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.lib.wasm
at Object.fetch (node:internal/deps/undici/undici:11372:11) {
[cause]: TypeError: Invalid URL
at new URL (node:internal/url:775:36)
at new _Request (node:internal/deps/undici/undici:5055:25)
at fetch2 (node:internal/deps/undici/undici:9195:25)
at Object.fetch (node:internal/deps/undici/undici:11370:18)
at fetch (node:internal/process/pre_execution:282:25)
at instantiateAsync (/Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.nodejs.cjs:63:70039)
at createWasm (/Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.nodejs.cjs:63:70648)
at /Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.nodejs.cjs:63:212265
at Object. (/Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.nodejs.cjs:96:23)
at Module._compile (node:internal/modules/cjs/loader:1241:14) {
code: 'ERR_INVALID_URL',
input: '/Volumes/Zamazingo/repos/musescore-mscxs/node_modules/webmscore/webmscore.lib.wasm'
}
}

Node.js v20.8.1`

@PeterNjeim
Copy link
Member

PeterNjeim commented Apr 19, 2024

Caused by: nodejs/undici#1857 (comment)

Related: #10, LibreScore/dl-librescore#16

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