
reverting back to 5.2.1 helps.
node.js 13.3.0
yarn
TS 3.8.4
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:

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?
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 馃殌
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
draftis implicitly getting theanytype, even though the passed instateobject is correctly typed: