nx run my-app:serve throws error: Uncaught TypeError: Cannot read properties of null (reading 'useContext')
Error does not appear when I remove persistStore and PersistGate.
Expected Behavior
App should run without any errors
Steps to Reproduce
Create NX workspace (I don't know if this error only exists with NX workspace)
Current Behavior
nx run my-app:serve
throws error:Uncaught TypeError: Cannot read properties of null (reading 'useContext')
Error does not appear when I removepersistStore
andPersistGate
.Expected Behavior
App should run without any errors
Steps to Reproduce
Environment
Node version: 16.13.0 npm version: 8.1.0
Is this related to React 18? Is somebody facing the same issue?