This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Inconsistent behavior when extending a application generator versus generating an app using the CLI #23295
Closed
1 of 4 tasks
Labels
Current Behavior
In this project we extend the Next and React generators to create apps.
In a default Nx 18 and 19 project (with Crystal) the app that gets generated by our extended generators, the content of
project.json
is verbose as can be seen in this generated app.However, if we generate a second app using the
nx
CLI in the same workspace, the content ofproject.json
is (mostly) using the inferred targets as can be seen here.The curious thing is that this is happening without having set
useInferencePlugins
innx.json
or having the env var set.Expected Behavior
Considering the workspace does not have
useInferencePlugins
set, I would expect the extended generator to behave the same as when we're using the CLI.GitHub Repo
https://github.com/beeman/solana-dapp-react-version
Steps to Reproduce
pnpx create-solana-dapp@next
web/project.json
is verbosepnpm nx g @nx/react:app second --e2e-test-runner none --routing false
second/project.json
is inferred.Nx Report
Failure Logs
No response
Package Manager Version
pnpm 9.0.5
Operating System
Additional Information
This also happened with Nx18 but I decided to wait till Nx19 to make sure it wasn't fixed there.
Somehow,
nx report
fails in my demo project, I'll create a separate issue for that (#23296).The text was updated successfully, but these errors were encountered: