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

Docusaurus + Node.js 20.6 doesn't work #9291

Closed
2 of 7 tasks
slorber opened this issue Sep 8, 2023 · 9 comments
Closed
2 of 7 tasks

Docusaurus + Node.js 20.6 doesn't work #9291

slorber opened this issue Sep 8, 2023 · 9 comments
Labels
external This issue is caused by an external dependency and not Docusaurus.

Comments

@slorber
Copy link
Collaborator

slorber commented Sep 8, 2023

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

Docusaurus doesn't work under Node.js 20.6.0

Very likely related to a Node.js bug: nodejs/node#49497

That should be fixed soon.

In the meantime I don't think there's anything we can do apart using a different Node.js version.

Going to close all the other related Docusaurus issues as duplicate. For now we have:

Reproducible demo

No response

Steps to reproduce

Use Node.js 20.6 + Docusaurus

Expected behavior

It works

Actual behavior

It doesn't work

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I'd be willing to fix this bug myself.
@jackblanc
Copy link

Same issue

@jarodreyes
Copy link

I'm also on node v20.6 and I am getting the following when I try npx create-docusaurus@latest my-website classic. Output:
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility (node:33254) Warning: Accessing non-existent property 'register' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) [ERROR] TypeError: common.register is not a function

@natarajsundar
Copy link

This issue is resolved in Node 20.6.1, can be closed.

@Josh-Cena
Copy link
Collaborator

Can I get others to confirm? @homotechsual, @alewolf, @milesj?

@milesj
Copy link
Contributor

milesj commented Sep 9, 2023

Looks to be working 👍

@Josh-Cena
Copy link
Collaborator

Great, let's close unless someone else reports otherwise 👍

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2023
@Josh-Cena Josh-Cena added external This issue is caused by an external dependency and not Docusaurus. and removed bug An error in the Docusaurus core causing instability or issues with its execution labels Sep 9, 2023
@alewolf
Copy link
Contributor

alewolf commented Sep 9, 2023

I'll have to wait until Homebrew updates its tap to the newest version of node. I'll let you know once that's done.

@homotechsual
Copy link
Contributor

All good now on 20.6.1

@milesj
Copy link
Contributor

milesj commented Sep 9, 2023

@alewolf Should try https://moonrepo.dev/proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external This issue is caused by an external dependency and not Docusaurus.
Projects
None yet
Development

No branches or pull requests

8 participants