Immer: [bug] 5.3.0 breaking typescript

Created on 15 Jan 2020  路  11Comments  路  Source: immerjs/immer

馃悰 Bug Report

Screenshot 2020-01-15 04 47 48

reverting back to 5.2.1 helps.

node.js 13.3.0
yarn
TS 3.8.4

released

Most helpful comment

I'm also seeing typescript related issues in 5.3.0, although I can't confirm that it's the same issue as @JustFly1984.

What I see is that draft is implicitly getting the any type, even though the passed in state object is correctly typed:

Screen Shot 2020-01-14 at 6 39 13 PM

All 11 comments

I'm also seeing typescript related issues in 5.3.0, although I can't confirm that it's the same issue as @JustFly1984.

What I see is that draft is implicitly getting the any type, even though the passed in state object is correctly typed:

Screen Shot 2020-01-14 at 6 39 13 PM

I have the same problem with draft any type error.

Same.

FWIW, it appears that some files are missing (e.g., dist/types-external.ts).

Not sure if that's the root cause.

Same for me, after upgrade:

Parameter 'draft' implicitly has an 'any' type.

@egoist Looks like an issue with bili, not exporting types for files that don't export any source code.

Pushed a temporarily workaround

:tada: This issue has been resolved in version 5.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

I'm still getting the same error with version 5.3.1

Weird, the file is still absent in npm. Manually released, could you try in 5.3.2?

https://unpkg.com/browse/[email protected]/dist/

I tried building immer locally without @mweststrate 's fix and that file is also correctly built. 馃

argh, for me it now appears as well, even on commit 747d268f22e4ad3e7f20f63c952ba6b665038757

5.3.2 works for me 馃殌

Was this page helpful?
0 / 5 - 0 ratings