Bug: TypeError: Cannot read properties of null (reading 'useEffect') in v3.8.3 Windows
Pre-flight checklist
- [x] I have searched existing issues and this bug has not been reported yet
Bug description
After the last update 3.8.3, I get this error every time I try to rum brv from the command line.
- Windows 10
- ModeJS v22.16.0 and v24.15.0
- Powershell
- Installation via PNPM 10.28.0 and 10.33.0
- Tested with both clean and existing installation
Steps to reproduce
- Install brv using:
pnpm install -g byterover-cli - Try to run the dashboard with
brv
Expected behavior
Dashboard should load up
Actual behavior
I get the error: TypeError: Cannot read properties of null (reading 'useEffect')
CLI version
3.8.3
Installation method
npm
Node.js version
24.15.0
Operating system
Other
LLM provider and model
No response
Relevant logs
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
ERROR Cannot read properties of null (reading 'useEffect')
C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected]_@napi-r_b559a88dc52e497138ad94bb5e3dc955/node_modules/byterover-cli/node_mod
ules/react/cjs/react.development.js:1225:33
1222: console.warn(
1223: "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1224: );
1225: return resolveDispatcher().useEffect(create, deps);
1226: };
1227: exports.useEffectEvent = function (callback) {
1228: return resolveDispatcher().useEffectEvent(callback);
-process.env.NODE_ENV.exports.u (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected]_@napi-r_b559a88dc52e497138ad94bb5e3dc955/no
eEffect de_modules/byterover-cli/node_modules/react/cjs/react.development.js:1225:33)
-TransportInitializ (file:///C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected]_@napi-r_b559a88dc52e497138ad94bb5e3dc955/node_m
r odules/byterover-cli/dist/tui/features/transport/components/transport-initializer.js:18:5)
-Object.react_stack_bottom (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/c
frame js/react-reconciler.development.js:17596:20)
-renderWithHook (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-re
conciler.development.js:5335:22)
-updateFunctionCompon (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/re
nt act-reconciler.development.js:7720:19)
-beginWork (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-reconci
ler.development.js:9277:18)
-runWithFiberInD (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-r
V econciler.development.js:2505:30)
-performUnitOfWo (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-r
k econciler.development.js:15273:22)
-workLoopSyn (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-recon
ciler.development.js:15099:41)
-renderRootSyn (C:/Users/User/AppData/Local/pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/react-reconciler/cjs/react-rec
onciler.development.js:15080:11)
TypeError: Cannot read properties of null (reading 'useEffect')
Reverted back to version 3.7.1 and I no longer have the error, so, this is something introduced in version 3.8.x
Hey @druellan, thanks a lot for the detailed report (and for confirming 3.7.1 still works, that's super helpful) Will report back here once we have a fix or more details. Thanks again for flagging this!
PR #558, #572, #573 will resolve this issue.
Thanks. I'll check as soon as is merged and report back.
we are investigating more about this, seems like this happens with pnpm only, here is some workarounds incase you want to go newer version immediately
- you could use npm/yarn for now
we are still put this issue on top priority, will notify you when it's done, thanks for reporting @druellan
Oh, I completely forgot to test using npm. No rush, I'm happy to hold on until you guys figure it out. Let me know if you need testing; I have two systems, one is almost pure PNPM.
EDIT: I can see ink is mentioned in the PR, I was aware of an issue about ink dependencies in the pnpm logs for some time, so this might have been an issue even on version 0.7.x but not catastrophic
Hello @druellan, from my investigation, the issue is fixed in the current newest version (3.10.1), can you try uninstall and re-install with pnpm again? waiting the result from your end, thank you
Can confirm is fixed!
I first did an update directly over 3.7.1, and after a brv restart it is up and runnig.
I also did an uninstall and reinstall, again, working as expected.
So, seems fixed. I'll report back if I find any oddities. Thanks!!
thank you, feel free to open new issue/feedback if needed closing this issue @druellan