jimp: 0.3.3 : Cannot find module 'core-js/modules/es6.array.is-array'

jimp 0.3.3 ubuntu 18

package.json:

{
  "name": "foo",
  "version": "0.0.1",
  "devDependencies": {
    "jimp": "0.3.3"
  }
}

app.js:

"use strict";
const jimp = require("jimp");

run it: node app.js

result is an error with: Error: Cannot find module 'core-js/modules/es6.array.is-array'

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 55

Most upvoted comments

@hipstersmoothie @oliver-moran problem has been solved! npm i -s core-js@2.5.7 I’ve installed specific 2.5.7 core-js version and jimp works well 😃 core-js v3 throws error as above.

Quick fix until next release:

yarn add @babel/polyfill

🤘Weed leaves and flames 🤘