Open pikilon opened 1 month ago
In the version 19.0.0 still failing when using the command but this time like this
npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
Need to install the following packages:
create-nx-workspace@19.0.4
Ok to proceed? (y) y
NX Let's create a new workspace [https://nx.dev/getting-started/intro]
✔ Set up CI with caching, distribution and test deflaking · skip
✔ Would you like remote caching to make your build faster? · skip
NX Creating your v19.0.4 workspace.
✔ Installing dependencies with npm
✖ Creating your workspace in rspack-demo
NX Failed to create a workspace.
tested also in version v19.1.0
NX Workspaces is not a constructor
A found a workaround only tested on NPM (with yarn
doesn't work)
npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
node_modules
and package-lock.json
on the rspack-demo
npm install
This workaround does not work with css.modules
as commented
in this issue https://github.com/nrwl/nx-labs/issues/392
The example code given to make a test of rspack is not longer working (nx current version 19, nx/rspack 18.3.7)
npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
https://www.npmjs.com/package/@nx/rspack?activeTab=readme