TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner') when rendering model using react-three libraries #66468
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Link to the code that reproduces this issue
https://github.com/faraasat/next-issue-cannot-read-reactcurrentowner
To Reproduce
three
,@react-three/fiber
,@react-three/drei
&@react-three/offscreen
.Current vs. Expected behavior
Model should be rendered correctly but got the following error:
TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner')
at $$$reconciler (react-reconciler.development.js:80:96)
at createRenderer (index-ba8afaa4.esm.js:221:31)
at index-ba8afaa4.esm.js:1722:5
at [project]/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@react-three/fiber/dist/index-ba8afaa4.esm.js [app-client] (:3001/ecmascript) (http://localhost:3001/_next/static/chunks/24fe2_%40react-three_fiber_dist_c7e87a._.js:2135:3)
at runtime-base.ts:348:21
at runModuleExecutionHooks (runtime-base.ts:404:5)
at instantiateModule (runtime-base.ts:346:5)
at getOrInstantiateModuleFromParent (runtime-base.ts:444:10)
at esmImport (runtime-utils.ts:228:18)
at 24fe2_@react-three_fiber_dist_c7e87a..js:2142:393
at [project]/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@react-three/fiber/dist/index-ba8afaa4.esm.js [app-client] (:3001/ecmascript) (http://localhost:3001/_next/static/chunks/24fe2_%40react-three_fiber_dist_c7e87a._.js:2145:3)
at runtime-base.ts:348:21
at runModuleExecutionHooks (runtime-base.ts:404:5)
at instantiateModule (runtime-base.ts:346:5)
at getOrInstantiateModuleFromParent (runtime-base.ts:444:10)
at esmImport (runtime-utils.ts:228:18)
at node_modules__pnpm_425bbc..js:1169:430
at [project]/node_modules/.pnpm/@react-three+offscreen@0.0.8_@react-three+fiber@[email protected]_eqaez262h3qeb75o2rit6uq5sm/node_modules/@react-three/offscreen/dist/index.mjs [app-client] (:3001/ecmascript) (http://localhost:3001/_next/static/chunks/node_modules__pnpm_425bbc._.js:1560:3)
at runtime-base.ts:348:21
at runModuleExecutionHooks (runtime-base.ts:404:5)
at instantiateModule (runtime-base.ts:346:5)
at getOrInstantiateModuleFromParent (runtime-base.ts:444:10)
at esmImport (runtime-utils.ts:228:18)
at src_8ea6ba..js:333:375
at [project]/src/components/modules/home/journey/model-render/journey.offscreen.tsx [app-client] (:3001/ecmascript) (http://localhost:3001/_next/static/chunks/src_8ea6ba._.js:415:3)
at runtime-base.ts:348:21
at runModuleExecutionHooks (runtime-base.ts:404:5)
at instantiateModule (runtime-base.ts:346:5)
at getOrInstantiateModuleFromParent (runtime-base.ts:444:10)
at esmImport (runtime-utils.ts:228:18)
at src_components_9d9cfd..js:16:16
The above error occurred in the component:
React will try to recreate this component tree from scratch using the error boundary you provided, ReactDevOverlay.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
pakage.json
next.config.mjs
The text was updated successfully, but these errors were encountered: