-
Notifications
You must be signed in to change notification settings - Fork 186
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
'verovio-module.js' does not provide an export named 'default' #3168
Comments
Are you using https://stackoverflow.com/a/57492606/9009012
Recently there was some progress and emscripten-core/emscripten#11792 was implemented in emscripten-core/emscripten#17915. We could enforce |
Thank you for looking into this, @WolfgangDrescher . I could actually fix it by simply adding |
I did the same for a while. It works well until you have some edge cases where you mix CommonJS and ECMAScript modules, because there are still some imports of modules in |
Btw. in case you are running Vite in your project. I could get around some problems with this config: // vite.config.js
export default {
optimizeDeps: {
include: [
'verovio/wasm',
'verovio/wasm-hum',
],
},
}; |
Thank you vor the vite config, that works great! |
#3174 has been merged. It should fix this issue with the next release so I think this can be closed. |
Note that with verovio v3.14.0 when importing // vite.config.js
export default {
worker: {
format: 'es',
},
}; |
Describe the problem
When using the official NPM package, this code works without any problems:
Shell:
JS:
However, if I build the package locally using the
emscripten/buildNpmPackage
script and try to use it, it fails with the following error:To Reproduce
Steps to reproduce the behavior:
Environment information (as appropriate)
The text was updated successfully, but these errors were encountered: