You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Layout in a server component, I get a NextJS error:
Server Error
Error: Class extends value undefined is not a constructor or null
This might be caused by a React Class Component being rendered in a Server Component, React Class Components only works in Client Components. Read more: https://nextjs.org/docs/messages/class-component-in-server-component
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
eval
(rsc)/node_modules/flexlayout-react/lib/view/ErrorBoundary.js (7:0)
(rsc)/./node_modules/flexlayout-react/lib/view/ErrorBoundary.js
Describe the bug
When using
Layout
in a server component, I get a NextJS error:Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
npx create-next-app@latest
npm install flexlayout-react
app/page.tsx
npm run dev
Code:
Expected behavior
It does not crash
Operating System
Browser Type?
Browser Version
Screenshots or Videos
Additional context
No response
The text was updated successfully, but these errors were encountered: