ERROR
Cannot read properties of null (reading 'useMemo')
TypeError: Cannot read properties of null (reading 'useMemo')
at Object.useMemo (http://localhost:3000/static/js/bundle.js:241387:25)
at defaultLayoutPlugin (http://localhost:3000/main.f2519163e0f365851fb8.hot-update.js:1013:32)
at PdfViewer (http://localhost:3000/main.991012cbdc34eb302c69.hot-update.js:29:124)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:144726:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:148012:17)
at beginWork (http://localhost:3000/static/js/bundle.js:149308:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:134318:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:134362:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:134419:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:154293:11)
I'm getting this error in my CRA project:
Here's the component:
If I remove the plugin, that error goes away, but then I get one about
useState
instead.