Skip to content
This repository was archived by the owner on Dec 25, 2018. It is now read-only.

Error after updating typescript to 2.4 #64

Closed
bmarotta opened this issue Jul 13, 2017 · 10 comments
Closed

Error after updating typescript to 2.4 #64

bmarotta opened this issue Jul 13, 2017 · 10 comments

Comments

@bmarotta
Copy link

After updating typescript to version 2.4 I get the following error while building. I'm using the umd version.

(...)/node_modules/typescript-dotnet-umd/System.Linq/Enumerable.d.ts(212,18): error TS2430: Interface 'NotEmptyEnumerable<T>' incorrectly extends interface 'ILinqEnumerable<T>'.
  Types of property 'aggregate' are incompatible.
    Type '(func: (previous: T, current: T) => T, seed?: T) => T' is not assignable to type '{ (func: (previous: T, current: T, index: number) => T, seed: T): T; (func: (previous: T, current...'.
      Types of parameters 'func' and 'func' are incompatible.
@electricessence
Copy link
Owner

Working on this.

@electricessence
Copy link
Owner

A lot of upgrades to the lib.d.ts file in 2.4

@electricessence
Copy link
Owner

Ok, I've made an update but left the min version as 2.3.2. It should be working now.
If not, you should go back to 2.3.2 because 2.4 is currently having stack overflow issues:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
microsoft/TypeScript#17097

@bmarotta
Copy link
Author

bmarotta commented Jul 14, 2017 via email

@electricessence
Copy link
Owner

It doesn't happen to everyone. Just certain build situations. TS .NET has a complex build.

@electricessence
Copy link
Owner

Did the new npm package solve your problem?

@bmarotta
Copy link
Author

bmarotta commented Jul 14, 2017 via email

@electricessence
Copy link
Owner

GREAT!

@bmarotta
Copy link
Author

bmarotta commented Jul 14, 2017 via email

@electricessence
Copy link
Owner

Dude, thank you for letting me know!

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

No branches or pull requests

2 participants