use-immer icon indicating copy to clipboard operation
use-immer copied to clipboard

Attempted import error: 'freeze' is not exported from 'immer' (imported as 'r').

Open libin1991 opened this issue 2 years ago • 8 comments

index.js:1437 ./node_modules/[email protected]@use-immer/dist/use-immer.module.js
Attempted import error: 'freeze' is not exported from 'immer' (imported as 'r').

libin1991 avatar Jan 02 '22 07:01 libin1991

Reproduction etc plz

On Sun, 2 Jan 2022, 08:39 码中仙, @.***> wrote:

index.js:1437 .@.***@use-immer/dist/use-immer.module.js Attempted import error: 'freeze' is not exported from 'immer' (imported as 'r').

— Reply to this email directly, view it on GitHub https://github.com/immerjs/use-immer/issues/97, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBFIQTBFBPOQ5DYVUYLUT76K5ANCNFSM5LDMBDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

mweststrate avatar Jan 02 '22 09:01 mweststrate

Same problem +1, downgrade to version 0.5.2 solved

zzlzm avatar Jan 13 '22 10:01 zzlzm

Demoted to version 0.5.2, but it didn't work for me, and the problem continued.

Evanl-lai avatar Apr 11 '22 05:04 Evanl-lai

+1

citrusjunoss avatar Apr 13 '22 01:04 citrusjunoss

So the problem is still unresolved. Please

Evanl-lai avatar Apr 13 '22 02:04 Evanl-lai

other package depend low version of Immer, update immer reslove this error for me

citrusjunoss avatar Apr 13 '22 02:04 citrusjunoss

This is not a bug in the package but in your project setup. Please make sure peer dependencies are satisfied or provide a reproduction. Further just +1-ing on this issue is pointless.

On Wed, 13 Apr 2022, 03:31 橙, @.***> wrote:

other package depend low version of Immer, update immer reslove this error for me

— Reply to this email directly, view it on GitHub https://github.com/immerjs/use-immer/issues/97#issuecomment-1097488451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBHFGVY6E5ADURM25ULVEYWYHANCNFSM5LDMBDKQ . You are receiving this because you commented.Message ID: @.***>

mweststrate avatar Apr 13 '22 13:04 mweststrate

Try to install "immer"

epranka avatar Aug 24 '22 09:08 epranka