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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rematch immer compilation error - (imported as 'produce') was not found #987

Open
HristoP96 opened this issue Nov 23, 2023 · 8 comments
Open

Comments

@HristoP96
Copy link

Describe the bug
After adding the immer and @rematch/immer plugin to my project, I get the following error during compliation:
export 'default' (imported as 'produce') was not found in 'immer'

To Reproduce
Add immer and @rematch/immer to your project.
Add immerPlugin to your the plugins list of the rematch config

Expected behavior
A successful compilation after adding the plugin

Screenshots
image

Desktop

  • OS: [e.g. Linux]
  • Browser [All]

Additional context
Using the following rematch versions:
"@rematch/core": "^2.2.0",
"@rematch/immer": "^2.1.3",

The problem seems to be in this file:
image

@CezaryBD
Copy link

Hello. Yes, please fix this issue - it's also important for our project.

@RodrigoPinaLozano
Copy link

same here, @HristoP96 have you found any workaround yet?

@tianzhich
Copy link
Collaborator

Hi all, I have fixed this #985. But I encountered some problems when realease new version and I can't contact @semoal for helps. You could use immer@9 for a temporary solution. same as #983

@tianzhich
Copy link
Collaborator

I'll try to fix the current issues with Rematch and release new version as soon as possible. Thank you still using it.

@HristoP96
Copy link
Author

@tianzhich Thank you for your fast response :)

@CezaryBD
Copy link

Thank you @tianzhich

@hg185090
Copy link

I'm still able to see the issue in the version 10.0.3, is it yet to be fixed?

@CezaryBD
Copy link

I'm still able to see the issue in the version 10.0.3, is it yet to be fixed?

Hi. This issue is still open, so I guess not yet.

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

No branches or pull requests

5 participants