cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

Error in latest release Unable to dynamically transpile ES module #225

Open naveedahmed1 opened 6 years ago

naveedahmed1 commented 6 years ago

Hi,

I am receiving below error after upgrading from 0.8.8 to latest release (0.9.0):

(index):120 Error: Unable to dynamically transpile ES module
   A loader plugin needs to be configured via `SystemJS.config({ transpiler: 'transpiler-module' })`.
  Instantiating http://localhost:45000/node_modules/ng2-img-cropper/index.js
zijianhuang commented 6 years ago

yes, I just saw the same thing. 0.8.8 is OK. My own app tsconfig.json is with es6/es2015, all working fine until introducing cropper 0.9.0.

I noticed that in cropper's tsconfig.json, there's such line: "lib": ["es6", "dom", "es2017.object"],

I am not sure if reference to es2017 is causing the problem, while this reference has already existed in 0.7.6