Croppr.js icon indicating copy to clipboard operation
Croppr.js copied to clipboard

Bundling with webpack issues

Open dennismonsewicz opened this issue 6 years ago • 0 comments

I am beginning to setup a project to use croppr.js where app is bundled with Webpack, but keep running into the following error when webpack runs:

ERROR in ./node_modules/croppr/dist/croppr.js
    Module build failed: Error: Couldn't find preset "es2015-rollup" relative to directory

When I do add "babel-preset-es2015-rollup": "^3.0.0", to my package.json file, I then run into issues with babelHelpers.

Has anyone else been able to successfully bundle Croppr.js with webpack?

Node version: 8.9.4 Webpack: 3.12

dennismonsewicz avatar Jan 31 '19 21:01 dennismonsewicz