immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot redefine property: default

vaynevayne opened this issue Β· comments

πŸ› Bug Report

A clear and concise description of what the bug is.

If your bug report involves classes, check the docs on how classes are handled first. For patches, don't file issues if they are not optimal, only if they are incorrect.

Link to repro

A bug report without a reproduction is not a bug report. Failing to follow this templately is likely to result in an immediate close & lock of the issue.

Please provide either a CodeSandbox demo, or a PR with a unit test. In limited cases, a minimal repository on GitHub is accepted as well.

To Reproduce

Steps to reproduce the behavior:

Observed behavior

A description of what behavior you observed and why you consider it faulty.

Expected behavior

A clear and concise description of what you expected to happen instead.

Environment

We only accept bug reports against the latest Immer version.

  • Immer version:
  • Occurs with setUseProxies(true)
  • I filed this report against the latest version of Immer
  • Occurs with setUseProxies(false) (ES5 only)

10.0.3
dev is ok
prod is error

image

9.x and 10.x also exist this issue

Please follow the issue template and create a minimal reproduction. Without a screenshot is completely inactionable.