kamiyo / multi-progress-bars

A multi progress bar library for CLI, with support for indefinite task spinners
MIT License
27 stars 4 forks source link

Chalk problem #21

Closed salk52 closed 2 years ago

salk52 commented 2 years ago

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;

kamiyo commented 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.

salk52 commented 2 years ago

ah, sry, my mistake...

thanx

kamiyo commented 2 years ago

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.