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/init@latest not compatible with Node LTS #4227

Closed
jcayzac opened this issue Feb 16, 2021 · 4 comments
Closed

@docusaurus/init@latest not compatible with Node LTS #4227

jcayzac opened this issue Feb 16, 2021 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@jcayzac
Copy link

jcayzac commented Feb 16, 2021

🐛 Bug Report

@docusaurus/init@latest has transitive dependencies on chokidar@2 and fsevents@1, which are broken on Node 14+.

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

  1. npx -y @docusaurus/init@latest init docusaurus-docs classic

Expected behavior

Project setup that is compatible with Node LTS.

Actual Behavior

warning @docusaurus/core > webpack-dev-server > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @docusaurus/core > webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @docusaurus/core > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

Your Environment

  • Docusaurus version used: npx -y @docusaurus/init@latest -- --version reports 2.0.0-alpha.70.
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Node.js 14.0.0.
  • Operating system and version (desktop or mobile): macOS 11.2.

Reproducible Demo

The problem happens before running docusaurus or making a website.

@jcayzac jcayzac 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 Feb 16, 2021
@RDIL
Copy link
Contributor

RDIL commented Feb 16, 2021

Nothing we can do about this, its all downstream dependencies. You will need to file an issue in the WDS repository.

@slorber
Copy link
Collaborator

slorber commented Feb 17, 2021

@RDIL will upgrading to Webpack 5 upgrade the deps? If that's the case I'd close it as "duplicate" of the Webpack 5 migration

In my experience despite this warning Docusaurus works fine on Node 14

@RDIL
Copy link
Contributor

RDIL commented Feb 17, 2021

Yeah, it should work fine on Node 14, and the update should in theory address this.

@slorber
Copy link
Collaborator

slorber commented Feb 17, 2021

thanks

so lets's close in favor of #4027

If this is not fixed after upgrading to Webpack 5, please re-open

@slorber slorber closed this as completed Feb 17, 2021
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Mar 6, 2022
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 closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

4 participants