Skip to content

[Bug]: @rspack/cli does not support node v16 #7884

@deanveloper

Description

@deanveloper

System Info

System:
OS: macOS 14.6.1
CPU: (16) arm64 Apple M3 Max
Memory: 7.08 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.local/state/fnm_multishells/3886_1724698272462/bin/node
npm: 8.11.0 - ~/.local/state/fnm_multishells/3886_1724698272462/bin/npm
Browsers:
Chrome: 128.0.6613.85
Safari: 17.6
npmPackages:
@rspack/core: ^1.0.4 => 1.0.4

Details

When I was experimenting with upgrading from webpack to rspack, I was expecting things to be seamless, however the node installation that we currently use for our development environment is 16.15.1. I was expecting this to be fine since the Rspack Quickstart details that the minimum required version for node is >= 16. While this seems to be true for @rspack/core, but minimum required version for @rspack/cli is >= 18.12.0.

I do see this documented at Migrating from rspack 0.x, however this article isn't relevant to what I'm currently doing since I'm not migrating from rspack 0.x, I'm migrating from webpack 5.x.

It might be good to both change the versions specified in the Quick Start, and possibly specifying the webpack-cli and webpack-dev-server versions in the Migrate from Webpack guide.

(Note that I was migrating from the following webpack dependencies)

  • "webpack": "5.78.0"
  • "webpack-cli": "4.10.0"
  • "webpack-dev-server": "4.9.0"

Reproduce link

No response

Reproduce Steps

  1. Install node v16.15.1 and npm 8.11.0
  2. npm add @rspack/cli@1.0.0 -D

Expected: successful install
Actual: EBADENGINE, required node version >= 18.12.0 because of a dependency on webpack-dev-middleware@7.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending triageThe issue/PR is currently untouched.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions