imagemin / imagemin

[Unmaintained] Minify images seamlessly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM

TJMaria opened this issue · comments

I'm using netlify to deploy my app.
I have imagemin-cli 7.0.0 installed

node v12.18.0 (npm v6.14.4)

I get the following error:

12:51:55 PM: internal/modules/run_main.js:54
12:51:55 PM:     internalBinding('errors').triggerUncaughtException(
12:51:55 PM:                               ^
12:51:55 PM: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
12:51:55 PM:     at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:720:11)
12:51:55 PM:     at Loader.resolve (internal/modules/esm/loader.js:97:40)
12:51:55 PM:     at Loader.getModuleJob (internal/modules/esm/loader.js:243:28)
12:51:55 PM:     at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:42:40)
12:51:55 PM:     at link (internal/modules/esm/module_job.js:41:36) {
12:51:55 PM:   code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
12:51:55 PM: }
12:51:55 PM: npm ERR! code ELIFECYCLE
12:51:55 PM: npm ERR! errno 1
12:51:55 PM: npm ERR! prox@0.0.1 build:images: `imagemin src/images/**/* --out-dir=dist/images`
12:51:55 PM: npm ERR! Exit status 1```