Turbopack dev server do not more compiled error #84851
Replies: 1 comment
-
This looks like a React version mismatch rather than a Turbopack compiler issue. Turbopack currently doesn’t suppress runtime React errors — it only stops compiling when a fatal bundling error occurs. That’s why you see the “Invalid hook call” warning but no compilation failure. Check the following:
This behavior (not showing runtime React errors as compilation errors) is known and being tracked while Turbopack error reporting matures. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
cross-env CRM_ENV=local next dev --turbopack
▲ Next.js 15.5.4 (Turbopack)
✓ globalNotFound
· optimizePackageImports
✓ browserDebugInfoInTerminal
✓ Starting...
✓ Ready in 695ms
○ Compiling /_error ...
✓ Compiled /_error in 9.9s
Warning: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useRef')
at new Promise ()
⨯ TypeError: Cannot read properties of null (reading 'useRef')
at new Promise ()
⨯ TypeError: Cannot read properties of null (reading 'useRef')
at new Promise ()
Warning: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
Warning: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ unhandledRejection: TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ unhandledRejection: TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
Warning: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
Warning: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
GET / 500 in 10462ms
GET / 500 in 60ms
TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ unhandledRejection: TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
⨯ unhandledRejection: TypeError: Cannot read properties of null (reading 'useInsertionEffect')
at new Promise ()
Beta Was this translation helpful? Give feedback.
All reactions