Skip to content

Next config setup not working #76

@damien-schneider

Description

@damien-schneider

When trying to implement the claude code server in the next.config:

import { startServer } from "@react-grab/claude-code/server";

if (process.env.NODE_ENV === "development") {
  startServer();
}

But as soon as adding this I get this error:

bun dev
$ next dev --port=3000
 ⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Dynamic require of "child_process" is not supported
    at ignore-listed frames

error: script "dev" exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions