Skip to content

Bug report, Missing dependency: @docsearch/css causes Next.js compile error #16045

@NikolaiKryshnev

Description

@NikolaiKryshnev

Describe the bug

Fresh clone + pnpm install + pnpm dev fails with:
Module not found: Can't resolve '@docsearch/css'
Imported from: ./src/styles/global.css

To reproduce

  1. Clone repo and checkout dev
  2. corepack enable && pnpm install
  3. pnpm dev
  4. Build fails with the error above

Expected behavior

Project compiles without adding extra packages manually.

Screenshots

No response

Desktop (please complete the following information)

  • OS: Windows 10
  • Browser: Chrome
  • Version: 135.0

Smartphone (please complete the following information)

N/A

Additional context

@docsearch/css is imported in src/styles/global.css but is not listed in dependencies.
Fresh installs fail until the package is manually added via pnpm add -w @docsearch/css.

Would you like to work on this issue?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingquestion ❓Further information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions