You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fairly new to working with packages and modules,
but I received an error in Node when using the Typescript / ES6 syntax
as shown in the Usage section of the README.
import { JZZ } from 'jzz';
^^^
SyntaxError: Named export 'JZZ' not found. The requested module 'jzz' is a CommonJS module,
which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'jzz';
const { JZZ } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
Node.js v19.9.0
The text was updated successfully, but these errors were encountered:
For the error post above, I was experimenting with the different usages for JZZ.
After installing the package with npm,
I made a test.mjs file that I tried to run with nodejs.
import{JZZ}from'jzz';console.log(JZZ)
then command line
node test.mjs
Also, wanted to mention that JZZ and the other modules, tiny synth, karaoke, gui player
have been incredibly useful for my projects.
Thank you for making these available.
I'm fairly new to working with packages and modules,
but I received an error in Node when using the Typescript / ES6 syntax
as shown in the Usage section of the README.
The text was updated successfully, but these errors were encountered: