(node:5036) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)
Uncaught SyntaxError C:\Users\clbal\OneDrive\Desktop\harmonize.js:3
import MidiWriter from "midi-writer-js";
^^^^^^
"type": "module", will fix this error:
(node:5036) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use
node --trace-warnings ...
to show where the warning was created) Uncaught SyntaxError C:\Users\clbal\OneDrive\Desktop\harmonize.js:3 import MidiWriter from "midi-writer-js"; ^^^^^^