multi-progress-bars icon indicating copy to clipboard operation
multi-progress-bars copied to clipboard

with v4, webpack builds fail

Open starpit opened this issue 4 years ago • 2 comments

Observed Error

[WEBPACK] ERROR in ./node_modules/multi-progress-bars/dist/multi-progress-bars.es.js 1:0
[WEBPACK] Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)

This is due to having a "type": "commonjs" in your top-level package.json: https://github.com/kamiyo/multi-progress-bars/blob/master/package.json#L13

Proposed Solution

I think it could be resolved in a way that "just works" with the default webpack behavior by renaming your dist/multi-progress-bars.es.js to instead use a .mjs extension (this would require two matching changes to the package.json).

starpit avatar Aug 03 '21 20:08 starpit

Sorry I've missed all these issues. I'll take a look.

kamiyo avatar Nov 09 '21 02:11 kamiyo

Hey, wondering if the latest prerelease solves this? 4.2.2-0

kamiyo avatar Jan 10 '22 21:01 kamiyo