undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentDispatcher')

This issue has been created since 2022-11-14.

I created the next js app using bun but I am getting the following error after I added redux packages in it.

Error loading app: /Users/uni/Projects/NFTDD/nftdd-wallet/pages/_app
989 |       error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
990 |     }
991 |   }
992 | }
993 | 
994 | var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
                                 ^
TypeError: undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentDispatcher')
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/cjs/react-dom.development.js:994:29
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/cjs/react-dom.development.js:29864:71
      at http://localhost:3000/blob:node_modules.server.bun:1:16360
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/index.js:37:27
      at http://localhost:3000/blob:node_modules.server.bun:1:16360
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-redux/es/utils/reactBatchedUpdates.js:1:0
989 |       error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
990 |     }
991 |   }
992 | }
993 | 
994 | var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
                                 ^
TypeError: undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentDispatcher')
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/cjs/react-dom.development.js:994:29
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/cjs/react-dom.development.js:29864:71
      at http://localhost:3000/blob:node_modules.server.bun:1:16360
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-dom/index.js:37:27
      at http://localhost:3000/blob:node_modules.server.bun:1:16360
      at /Users/uni/Projects/NFTDD/nftdd-wallet/node_modules/react-redux/es/utils/reactBatchedUpdates.js:1:0

React version:

"react": "^18.2.0",

Steps To Reproduce

  1. install bun
  2. clone https://github.com/ZeeshanAhmadKhalil/react-bug
  3. bun dev

Link to code example:

https://github.com/ZeeshanAhmadKhalil/react-bug

The current behavior

Getting error:

undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentDispatcher')

The expected behavior

Should run the next app with redux store added

ZeeshanAhmadKhalil wrote this answer on 2022-11-14

When creating the same thing with yarn instead of a bun app is running fine.
Might need to transfer this issue to bun's repo.

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Save error - file name being saved as file type 1 2021-05-01 2022-11-26
Add another environmental variable so you can set CUDA_VISIBLE_DEVICES in flow_parser.py and docker image 0 2022-09-11 2022-12-10
Enabling LaTeX in init.el makes doom upgrade crash 5 2022-07-31 2022-08-19
auto.adam(), corHigh Error/Error in matrix 5 2021-01-29 2022-10-17
[game] Closing the gk.exe window does not terminate the process when `-boot` flag is provided 3 2022-05-19 2022-12-04
演示的DEMO.HTML 有问题 输入链接后-解析-提示解析成功-但是不输出任何内容啊,首页对接测试数据又是有的 2 2021-02-25 2022-12-02
on IOS 14+, the `getPhotos()` cannot exclude restricted photos on limited access permission 4 2021-01-08 2022-09-11
To change font weight(bold, italic) when using <Text> tag 3 2022-08-17 2022-10-19
`on_open` doesn't perform correctly 8 2021-11-07 2022-11-11
「Update WIKI」新版本自动评论初始化的实现 0 2021-03-07 2022-11-12
gitalk授权登录后报错403 6 2021-02-28 2022-01-20
希望能加入对中文的支持 1 2021-03-07 2021-12-24
Incorporate physics updaters into Kessler 1 2021-10-11 2022-10-01
Keypair generation and sign/verify using ECDSA + sha1 2 2021-02-08 2022-11-25
Adding a new aligner 2 2021-06-15 2022-10-12
What exactly is "use_filtered" doing? 1 2021-06-16 2022-12-07
[Issue]: Exhausted reserved memory on Audio stream games through FSP 2 2022-04-10 2022-11-01
Cannot update kube resource name or namespace 1 2022-07-26 2022-12-08
sys/socket.h: No such file or directory 1 2022-02-09 2022-12-02
mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz cannot be downloaded 18 2022-02-08 2022-12-09
mvupdate3 fails to update totals in status table 2 2021-02-27 2022-09-25
Fieldsets are not rendering as expected 2 2022-01-13 2022-11-10
deprecate or remove fusion/[jsformdata,jsheaders] because of the new [std/jsformdata,jsheaders] 5 2021-03-07 2022-11-29
Sign In button throwing an error 0 2021-04-06 2022-12-07
custom opam repositories are not well-handled 8 2021-04-28 2022-11-20
Audit RNG on platform CC2652R7 1 2021-10-15 2022-09-12
Ability to disable the API Gateway Request Validator on v2 23 2021-11-10 2022-10-17
External subtitle not loaded 1 2021-08-30 2022-11-10
Document how infra images are built 0 2021-07-02 2022-11-22
Semantic quickfix for generic IDEs: Command interface 0 2021-09-14 2022-12-02
Extension causes high cpu load 6 2021-07-18 2022-11-18
Diffs no longer call string() 1 2021-08-02 2022-11-24
Error initializing Taint Vulnerabilities package 1 2022-04-05 2022-11-09
Open file on startup? 0 2022-04-25 2022-12-06
Typo in the nfet_g5v0d16v0 and pfet_g5v0d16v0 sub-circuit spice files 0 2021-04-26 2022-12-10
Bump lodash from 4.17.19 to 4.17.21 0 2021-06-29 2021-10-28
v5-beta - add slide transition with keyboard and click button action? 4 2021-06-24 2022-11-12
Logs of slurm job failure in submitit logs 2 2021-07-29 2022-11-28
short jobs timeout immediately 3 2021-10-21 2022-11-28
BLE_MESH: Out of relay buffers (IDFGH-6324) 0 2021-12-01 2022-09-28
Friday's change to the CI breaks the Android release 0 2022-10-16 2022-10-26
Disable Private tenant for `kibana_read_only` users 3 2021-08-19 2022-11-17
Errors happened while compiling into wasm file with no_std environment. 0 2020-01-11 2022-11-20
Automatically redirect to alternative website frontends 1 2022-07-07 2022-10-23
Reverse sort order? 9 2020-10-11 2022-01-08
[Security] Bump ini from 1.3.5 to 1.3.7 1 2020-12-10 2021-11-01
Opting out of Developer exception page during development 7 2022-09-09 2022-09-06
Blazor WebAssembly empty template minor issues 2 2022-09-09 2022-09-06
[Flutter 2.10.3] ListTile ignores tileColor/selectedTileColor if parent Container has color 3 2022-04-01 2022-11-28
Clean checkbox colors so they use the material 3 palette 3 2022-05-23 2022-10-23