Skip to content

Fail to upgrade to docusaurus3.5 with theme-search-algolia #10383

@jovezhong

Description

@jovezhong

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Maybe I am not alone. The 3.5 release is out and a PR is created to upgrade to the new version (from 3.4 to 3.5) but the build failed with error message

[ERROR] Client bundle compiled with errors therefore further build is impossible.
Module not found: Error: Can't resolve '@docusaurus/core/src/client/exports/useDocusaurusContext' in '/Users/jove/Dev/timeplus-io/docs/node_modules/@docusaurus/theme-search-algolia/lib/client'

You may check more details at timeplus-io/docs#206

This can be reproduced on CI or local build.

I also tried to remove the "@docusaurus/theme-search-algolia": "^3.5.0", dependency but same error. Please check. Thanks.

Reproducible demo

No response

Steps to reproduce

Check timeplus-io/docs#206

Expected behavior

Upgrade from 3.4 to 3.5 smoothly

Actual behavior

yarn run build failed with error for theme-search-algolia

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions