Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mxtommy opened this issue Sep 27, 2017 · 0 comments
Open

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

mxtommy opened this issue Sep 27, 2017 · 0 comments

Comments

@mxtommy
Copy link

mxtommy commented Sep 27, 2017

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! [email protected] build: rm -rf lib && tsc -p src
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant