Open rchrdnsh opened 2 years ago
There might be something about magenta.js that prevents it from being used as a true ESModule. Could you please try just including the following import in your project (leaving out html-midi-player) to see if you get the same error?
import { PianoRollSVGVisualizer } from '@magenta/music/esm/core.js';
If yes, then I suggest raising this issue with magenta.js.
There might be something about magenta.js that prevents it from being used as a true ESModule. Could you please try just including the following import in your project (leaving out html-midi-player) to see if you get the same error?
import { PianoRollSVGVisualizer } from '@magenta/music/esm/core.js';
If yes, then I suggest raising this issue with magenta.js.
works. here deploy https://app.netlify.com/sites/perkedel/deploys/6363bc8569888f0009e0e50d now.
it was not working with just usual import 'html-midi-player';
. here faile https://app.netlify.com/sites/perkedel/deploys/6363b9ff9ae6aa0009f73051
src/components/Elements/MidiPlayer.astro
Perhaps I should try traditional CDNed JS for now instead of npm
? let' see..
framework: Astro
Trying to use this in sveltekit and getting the following error:
...I'm a bit unsure as to what to do to make it work, or what to change where...any thoughts would be appreciated...
SvelteKit uses Vite which uses ES Build under the hood and is essentially ESM only, if that helps...