Skip to content

Build error in 3.6.0 #683

Description

@Marcool04

BorgWarehouse version : 3.6.0
Installation type : Arch User Package (which I maintain)


Describe the bug
Build fails with the following error:

  Generating static pages using 1 worker (0/2) ...
Error: <Html> should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
    at z (.next/server/chunks/ssr/0g7g_next_1cpyw34._.js:6:1323)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: <Html> should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
    at z (.next/server/chunks/ssr/0g7g_next_1cpyw34._.js:6:1323)
Export encountered an error on /404, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
[ELIFECYCLE] Command failed with exit code 1.

To Reproduce
Steps to reproduce the behavior:

  1. pnpm install --frozen-lockfile --prod
  2. pnpm run build

Expected behavior
Successful build.

Additional context
See https://aur.archlinux.org/packages/borgwarehouse for the build procedure, which basically implements https://borgwarehouse.com/docs/admin-manual/debian-installation/ for Arch Linux. I have checked that page and see no difference there which might have caused the problem. Current version of nodejs on Arch is 26.4.0 and pnpm is 11.3.0.

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