Replies: 3 comments 4 replies
-
We need assistance to fix that one. |
Beta Was this translation helpful? Give feedback.
-
Move Client-Specific Code: If possible, move the code that uses createContext or other client-specific functionality to client-side components. This way, it will only be executed in the browser environment. Conditional Import: If the code cannot be moved entirely to the client side, you can conditionally import the module that contains the client-specific functionality. This way, the code won't be executed on the server: import { createPlateEditor } from 'module-that-contains-client-specific-functionality'; export async function POST(request: Request) {
} |
Beta Was this translation helpful? Give feedback.
-
Tracked in #3177 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using NextJS I have an
app/api/route.ts
with the following:but when I try to run it I receive the error
What am I missing? I thought this was possible but correct me if I am wrong.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions