MeetmeLeave / ng-canvas-gauges

Angular2 component wrapper for the canvas-gauges library written by @Mikhus(https://github.com/Mikhus/canvas-gauges).
MIT License
38 stars 23 forks source link

Property 'assign' does not exist on type 'ObjectConstructor'. #9

Open mxtommy opened 6 years ago

mxtommy commented 6 years ago

Hi,

I'm trying to use the module in an Angular 4 project (using angular-cli). I ran 'npm install ng-canvas-gauges' however i's build step seems to fail.

src/base-gauge.ts(41,31): error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'.

npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! ng-canvas-gauges@2.0.2 build: rm -rf lib && tsc -p src npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ng-canvas-gauges@2.0.2 build script 'rm -rf lib && tsc -p src'.

Going by this page: https://stackoverflow.com/questions/35959372/property-assign-does-not-exist-on-type-objectconstructor it seems that either the target in tsconfig is wrong, or a polyfil is needed?

Thanks!