Skip to content

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

Closed as not planned
Closed as not planned

Description

@slorber

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.

Activity

  1. added
    bugAn error in the Docusaurus core causing instability or issues with its execution
    on Sep 8, 2023
  2. jackblanc commented on Sep 8, 2023

    @jackblanc

    Same issue

  3. jarodreyes commented on Sep 8, 2023

    @jarodreyes

    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

  4. natarajsundar commented on Sep 8, 2023

    @natarajsundar

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

  5. Josh-Cena commented on Sep 8, 2023

    @Josh-Cena
    Collaborator

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

  6. milesj commented on Sep 9, 2023

    @milesj
    Contributor

    Looks to be working 👍

  7. Josh-Cena commented on Sep 9, 2023

    @Josh-Cena
    Collaborator

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

  8. added
    externalThis issue is caused by an external dependency and not Docusaurus.
    and removed
    bugAn error in the Docusaurus core causing instability or issues with its execution
    on Sep 9, 2023
  9. alewolf commented on Sep 9, 2023

    @alewolf
    Contributor

    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.

  10. homotechsual commented on Sep 9, 2023

    @homotechsual
    Contributor

    All good now on 20.6.1

  11. milesj commented on Sep 9, 2023

    @milesj
    Contributor
  12. Vrushank796 commented on Jul 2, 2024

    @Vrushank796

    Still getting the same error as #9278 in Node v20.15.0

  13. Hexi1997 commented on Sep 24, 2024

    @Hexi1997

    same question

  14. slorber commented on Sep 25, 2024

    @slorber
    CollaboratorAuthor

    We aren't going to do anything on your comments here unless you open a new dedicated issue with a repro.

  15. locked and limited conversation to collaborators on Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalThis issue is caused by an external dependency and not Docusaurus.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions