Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation step for @rematch/immer installs immer 10 #983

Closed
chickoocoutinho opened this issue May 4, 2023 · 2 comments 路 Fixed by #985
Closed

Installation step for @rematch/immer installs immer 10 #983

chickoocoutinho opened this issue May 4, 2023 · 2 comments 路 Fixed by #985
Labels

Comments

@chickoocoutinho
Copy link

馃摎 Documentation

npm install immer @rematch/immer

@rematch/immer is compatible with immer 7, immer 8, immer 9.

The above command installs immer 10.

Need to change the command to

npm install immer@9 @rematch/immer

@Kris-Pelteshki
Copy link

Thanks for the comment. I was wondering why it wasn't working.
馃憤Saved me a lot of time

@sien75
Copy link

sien75 commented May 18, 2023

Yes, immer@10 has changed their api, from
import produce from 'immer'
to
import { produce } from 'immer'
Using @rematch/immer@2 with immer@10 will cause "TypeError: Object(...) is not a function".
@rematch/immer plugin should lock its immer peerDependency to not higher than 9, and explain this in the document.

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

Successfully merging a pull request may close this issue.

3 participants