Closed salk52 closed 2 years ago
Duplicate of #18. Actually fixed on 4.2.2-0
prerelease, but I haven't had time to push an actual release out. I'll notify you when I do.
ah, sry, my mistake...
thanx
No worries, wasn't clear from the title of that issue that the problem was the same. Enjoy!
Edit: oh, and 4.2.2
is released.
Line 1 in multi-progress-bars.mjs
import { green } from 'chalk';
throws exception
import { green } from 'chalk'; ^^^^^ SyntaxError: Named export 'green' not found. The requested module 'chalk' 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:
I'm using node 16
so it should be
import chalk from 'chalk'; const { green } = chalk;