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

Build fail on Docusaurus 3.5.1 #444

Closed
ld-web opened this issue Aug 10, 2024 · 7 comments · Fixed by #445 or #446
Closed

Build fail on Docusaurus 3.5.1 #444

ld-web opened this issue Aug 10, 2024 · 7 comments · Fixed by #445 or #446

Comments

@ld-web
Copy link

ld-web commented Aug 10, 2024

Hello, first, thank you for this plugin !

I just upgraded to the newest version of Docusaurus (3.5.1) but I can't build with it :

[ERROR] Error: Unable to build website for locale fr.
    at tryToBuildLocale (/node_modules/.pnpm/@docusaurus+core@3.5.1_@docusaurus+types@3.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1__d_upty6jj6xlpwwmkc3vds73poq4/node_modules/@docusaurus/core/lib/commands/build.js:54:19)
    at async /node_modules/.pnpm/@docusaurus+core@3.5.1_@docusaurus+types@3.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1__d_upty6jj6xlpwwmkc3vds73poq4/node_modules/@docusaurus/core/lib/commands/build.js:65:9
    at async mapAsyncSequential (/node_modules/.pnpm/@docusaurus+utils@3.5.1_@docusaurus+types@3.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1__typescript@5.4.5/node_modules/@docusaurus/utils/lib/jsUtils.js:21:24)
    at async Command.build (/node_modules/.pnpm/@docusaurus+core@3.5.1_@docusaurus+types@3.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1__d_upty6jj6xlpwwmkc3vds73poq4/node_modules/@docusaurus/core/lib/commands/build.js:63:5) {
  [cause]: TypeError: Cannot read properties of undefined (reading 'load')
      at parse (/node_modules/.pnpm/@easyops-cn+docusaurus-search-local@0.39.0_@docusaurus+theme-common@3.5.1_@docusaurus+plugin-_btcdilkjrraiu2f6hyizxb3upy/node_modules/@easyops-cn/docusaurus-search-local/dist/server/server/utils/parse.js:10:33)
      at /node_modules/.pnpm/@easyops-cn+docusaurus-search-local@0.39.0_@docusaurus+theme-common@3.5.1_@docusaurus+plugin-_btcdilkjrraiu2f6hyizxb3upy/node_modules/@easyops-cn/docusaurus-search-local/dist/server/server/utils/scanDocuments.js:24:46
      at Generator.next (<anonymous>)
      at fulfilled (/node_modules/.pnpm/tslib@2.6.3/node_modules/tslib/tslib.js:166:62)
}

Docusaurus version: 3.5.1
Node version: v20.11.1

It looks like it can't load something with the cheerio package, but I have no idea what it is.

I tried to change the locale (both in Docusaurus and plugin configuration) but got the same error with en locale.

@hsm207
Copy link

hsm207 commented Aug 10, 2024

I get the same error to when upgrading to docusaurus 3.5.1.

I'm using node v22.6.0.

@rainecheck
Copy link

I didn't get it on upgrade to 3.5.1, but I did get it after refreshing lockfile dependencies afterwards.

@weareoutman
Copy link
Member

What's the output of yarn why cheerio or npm list cheerio?

@weareoutman
Copy link
Member

Fixed in v0.44.5

@rainecheck
Copy link

Appears to be fixed in 0.44.5.

@ld-web
Copy link
Author

ld-web commented Aug 12, 2024

Yes, works for me in v0.44.5.

謝謝 !

@hsm207
Copy link

hsm207 commented Aug 12, 2024

It’s working for me in v0.44.5 too.

感謝你!

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants