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

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

Open
pikilon opened this issue May 11, 2024 · 3 comments
Open

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

pikilon opened this issue May 11, 2024 · 3 comments

Comments

@pikilon
Copy link

pikilon commented May 11, 2024

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 pikilon changed the title With nx 19 the Example of @nx/rspack does not work any longer With nx 19 the Example of @nx/rspack does not work May 11, 2024
@pikilon
Copy link
Author

pikilon commented May 19, 2024

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:
[email protected]
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 pikilon changed the title With nx 19 the Example of @nx/rspack does not work With nx 19 @nx/rspack does not work [including latest v19.0.0] May 19, 2024
@pikilon pikilon changed the title With nx 19 @nx/rspack does not work [including latest v19.0.0] With nx 19 @nx/rspack does not work [including latest v19.1.0] May 29, 2024
@pikilon
Copy link
Author

pikilon commented May 29, 2024

tested also in version v19.1.0

 NX   Workspaces is not a constructor

@pikilon
Copy link
Author

pikilon commented May 30, 2024

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

  • after running npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
  • delete the node_modules and package-lock.json on the rspack-demo
  • install all dependencies again npm install

This workaround does not work with css.modules as commented
in this issue #392

@pikilon pikilon changed the title With nx 19 @nx/rspack does not work [including latest v19.1.0] With nx 19.1.0 @nx/rspack does not work [including latest v19.1.0] May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant