chrisguttandin / json-midi-encoder

This module encodes a JSON representation of MIDI data into a binary MIDI file.
MIT License
41 stars 4 forks source link

Blob is not defined in nodejs #363

Closed asmanp2012 closed 8 months ago

asmanp2012 commented 3 years ago
\node_modules\json-midi-encoder\build\es5\bundle.js:10
        var blob = new Blob([worker], {
                   ^
ReferenceError: Blob is not defined
chrisguttandin commented 3 years ago

Unfortunately that's expected on Node.js since the package is not meant to be used on Node.js. It's mainly because of the usage of Web Workers. The code itself could theoretically also run on Node.js.

https://github.com/chrisguttandin/midi-json-parser/issues/285

chrisguttandin commented 8 months ago

I'm closing this issue in favor of #376.