Conversation
…es for CNW ## Current Behavior In non-interactive contexts (IDE terminals, scripts, SSH without -t), `determineTemplate()` returns `'custom'` which routes to the preset flow. Without `--preset` provided, this throws "Preset is required" — a 22.6.0 regression affecting ~15 users/day. Users must also pass full template paths like `--template=nrwl/angular-template`. ## Expected Behavior Non-interactive mode defaults to `nrwl/empty-template` (template flow) instead of `'custom'` (preset flow) when neither `--preset` nor `--template` is provided. Shorthand template names are supported: - `--template=angular` → `nrwl/angular-template` - `--template=react` → `nrwl/react-template` - `--template=typescript` → `nrwl/typescript-template` - `--template=empty` → `nrwl/empty-template` ## Related Issue(s) Fixes NXC-4153
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
View your CI Pipeline Execution ↗ for commit ebc19c7
☁️ Nx Cloud last updated this comment at |
FrozenPandaz
approved these changes
Mar 27, 2026
FrozenPandaz
pushed a commit
that referenced
this pull request
Mar 27, 2026
…es for CNW (#35045) This PR address some common errors seen during CNW around `--template` and `--preset` during non-interactive flows that are not AI agents. Also sees that some template names are not qualified with `nrwl/<name>-template` so we can normal though (which also makes it shorter in docs). ## Current Behavior In non-interactive contexts (IDE terminals, scripts, SSH without `-t`), `determineTemplate()` returns `'custom'` which routes to the preset flow. Without `--preset` provided, this throws "Preset is required", which affects ~15 users/day (~145 occurrences Mar 18-27). Users must also pass full template paths like `--template=nrwl/angular-template`. ## Expected Behavior Non-interactive mode defaults to `nrwl/empty-template` (template flow) instead of `'custom'` (preset flow) when neither `--preset` nor `--template` is provided. Shorthand template names are supported: - `--template=angular` → `nrwl/angular-template` - `--template=react` → `nrwl/react-template` - `--template=typescript` → `nrwl/typescript-template` - `--template=empty` → `nrwl/empty-template` ## Related Issue(s) Fixes NXC-4153
Contributor
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR address some common errors seen during CNW around
--templateand--presetduring non-interactive flows that are not AI agents. Also sees that some template names are not qualified withnrwl/<name>-templateso we can normal though (which also makes it shorter in docs).Current Behavior
In non-interactive contexts (IDE terminals, scripts, SSH without
-t),determineTemplate()returns'custom'which routes to the preset flow. Without--presetprovided, this throws "Preset is required", which affects ~15 users/day (~145 occurrences Mar 18-27).Users must also pass full template paths like
--template=nrwl/angular-template.Expected Behavior
Non-interactive mode defaults to
nrwl/empty-template(template flow) instead of'custom'(preset flow) when neither--presetnor--templateis provided.Shorthand template names are supported:
--template=angular→nrwl/angular-template--template=react→nrwl/react-template--template=typescript→nrwl/typescript-template--template=empty→nrwl/empty-templateRelated Issue(s)
Fixes NXC-4153