nrwl / nx-labs

A collection of Nx plugins
MIT License
130 stars 48 forks source link

With nx 19.1.0 @nx/rspack does not work [including latest v19.1.0] #397

Open pikilon opened 1 month ago

pikilon commented 1 month ago

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

pikilon commented 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.
pikilon commented 1 month ago

tested also in version v19.1.0

 NX   Workspaces is not a constructor
pikilon commented 1 month ago

A found a workaround only tested on NPM (with yarn doesn't work)

This workaround does not work with css.modules as commented in this issue https://github.com/nrwl/nx-labs/issues/392