Skip to content

broken build with next 16 #525

@parmentelat

Description

@parmentelat

quick question: is codehike expected to work under next 16 ?

I have a repo here
https://github.com/ue22-p25/backend-flask-chatapp

which broke when I accepted gh's dependabot PR here
ue22-p25/backend-flask-chatapp#7

complaining with the error below

I'm not exactly fluent with next, and I don't explicitly configure turbo in my own config

I have reverted to next15 for now, how am supposed to upgrade ?


❯ npx next build
⚠ Invalid next.config.mjs options detected:
⚠     Unrecognized key(s) in object: 'turbo' at "experimental"
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
▲ Next.js 16.1.6 (Turbopack)
- Experiments (use with caution):
  ? turbo (invalid experimental key)

  Creating an optimized production build ...

-----
FATAL: An unexpected Turbopack error occurred. A panic log has been written to /var/folders/9n/sxs31qhj1gnd6gk2v0ns8848000fn2/T/next-panic-646da144b5b42a888fed36a72a1391c5.log.

To help make Turbopack better, report this error by clicking here.
-----


> Build error occurred
Error [TurbopackInternalError]: Failed to write app endpoint /page

Caused by:
- Expected process result to be a module, but it could not be processed

Debug info:
- Execution of get_all_written_entrypoints_with_issues_operation failed
- Execution of EntrypointsOperation::new failed
- Execution of all_entrypoints_write_to_disk_operation failed
- Execution of Project::emit_all_output_assets failed
- Execution of *emit_assets failed
- Execution of all_assets_from_entries_operation failed
- Execution of *all_assets_from_entries failed
- Execution of output_assets_operation failed
- Execution of <AppEndpoint as Endpoint>::output failed
- Failed to write app endpoint /page
- Execution of AppEndpoint::output failed
- Execution of get_app_page_entry failed
- Execution of ProcessResult::module failed
- Expected process result to be a module, but it could not be processed
    at <unknown> (TurbopackInternalError: Failed to write app endpoint /page) {
  type: 'TurbopackInternalError',
  location: undefined
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions