You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a brand new app in a brand new workspace, I get this error
npx nx serve my-app --verbose
NX Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it. See errors below.
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
An error occurred while processing files for the @nx/rspack/plugin plugin.
- my-app/rspack.config.js: Cannot read properties of null (reading 'nodes')
TypeError: Cannot read properties of null (reading 'nodes')
at makeConfig ([redated]/test/node_modules/@nx/rspack/src/utils/with-nx.js:16:46)
Expected Behavior
nx serve should work out of the box
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace --preset=apps
npx nx add @nx/rspack (edit: it looks like, it works fine if you skip this step)
npx nx add @nx/react
npx nx g @nx/react:app my-app --bundler=rspack
npx nx serve my-app --verbose
Nx Report
NX Report complete - copy this into the issue template
⚠️ Unable to construct project graph.
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
An error occurred while processing files for the @nx/rspack/plugin plugin.
- my-app/rspack.config.js: Cannot read properties of null (reading 'nodes')
TypeError: Cannot read properties of null (reading 'nodes')
Failure Logs
No response
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
It looks like it works fine if I skip npx nx add @nx/rspack, and let the command npx nx g @nx/react:app my-app --bundler=rspack auto add rspack
The text was updated successfully, but these errors were encountered:
…gin #28464 (#28515)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->
## Current Behavior
<!-- This is the behavior we have today -->
When you create a react rspack app when there is a `@nx/rspack/plugin`
definition in the nx.json, it causes the project graph to fail to create
nodes.
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Ensure the projects created via @nx/react:app --bundler=rspack are added
to exclude array if the plugin exists
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#28464
Current Behavior
When I create a brand new app in a brand new workspace, I get this error
Expected Behavior
nx serve should work out of the box
GitHub Repo
No response
Steps to Reproduce
Nx Report
NX Report complete - copy this into the issue template
Node : 20.14.0
OS : linux-x64
Native Target : x86_64-linux
npm : 10.7.0
nx : 20.0.1
@nx/js : 20.0.1
@nx/eslint : 20.0.1
@nx/workspace : 20.0.1
@nx/devkit : 20.0.1
@nx/eslint-plugin : 20.0.1
@nx/react : 20.0.1
@nx/rspack : 20.0.1
@nx/vite : 20.0.1
@nx/web : 20.0.1
typescript : 5.5.4
Registered Plugins:
@nx/rspack/plugin
@nx/vite/plugin
@nx/eslint/plugin
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
An error occurred while processing files for the @nx/rspack/plugin plugin.
- my-app/rspack.config.js: Cannot read properties of null (reading 'nodes')
TypeError: Cannot read properties of null (reading 'nodes')
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
It looks like it works fine if I skip
npx nx add @nx/rspack
, and let the commandnpx nx g @nx/react:app my-app --bundler=rspack
auto add rspackThe text was updated successfully, but these errors were encountered: