angular - Type Error.stackTraceLimit 'number' is not assignable to type '(limit: number) => void' -


in typescript, in project angular 2 started https://github.com/preboot/angular2-webpack, following ts parsing error:

// polyfill.ts (line 13)  error.stacktracelimit = infinity 

[ts] type 'number' not assignable type '(limit: number) => void'. const error: errorconstructor

doesn't make sense me, since error.stacktracelimit expects number. i've tried function typescript says well, crashes browser.

any ideas?

edit 1

after merging latest master, works.

but, need use typescript 2.0.0 whatever reason, error:

error ts2430: interface 'nodebuffer' incorrectly extends interface 'uint8array'.

to solve it, run typings install env~node -sg mentioned in https://github.com/typings/typings/issues/554, update node typings.

and i'm error error.stacktracelimit 'number' not assignable type '(limit: number) => void'

seems missing on typings. ideas this?

i suggest updating project. if using angular2-webpack base project, might worth merging master.

when @ code in github project have linked, line 13 not match wrote.

error['stacktracelimit'] = infinity;


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -