Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 7 tasks
jovezhong opened this issue Aug 9, 2024 · 2 comments · Fixed by #10382
Closed
2 of 7 tasks

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

jovezhong opened this issue Aug 9, 2024 · 2 comments · Fixed by #10382
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@jovezhong
Copy link

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.
@jovezhong jovezhong added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Aug 9, 2024
@Josh-Cena
Copy link
Collaborator

Thanks, should be fixed by #10382

@slorber
Copy link
Collaborator

slorber commented Aug 9, 2024

Fixed in v3.5.1 release

@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants