#987·rematch

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

Author: HristoP96Created Nov 23, 2023Updated Feb 22, 2024

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