SharePoint / SharePoint/spfx

Strange warning when scaffolding a project

Open
#244 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: templates type: bug
Dominant language
TypeScript
Stars
32
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Description

When scaffolding a new project, I get a strange warning

Image

The project creates correctly, but it's unclear to me why I get this warning, and why all the project templates need to be listed out in the terminal.

Steps to reproduce
  1. Run spfx create --template "webpart-react" --component-name "test" --library-name "react" --solution-name "testA" --component-description "test desc"
Expected behavior

I think it should just scaffold the project and that's it. No warning and now template list is needed

Actual behavior

I get an output visible as in the description

CLI version

0.1.0-pre.3

Node.js version

v22.14.0

Operating system

Windows

Template (if applicable)

webpart-react

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the documented spfx create command using the webpart-react template on Windows. Start at the spfx create CLI entry point and inspect how template selection and terminal output are handled; done means the project still scaffolds successfully without the warning or unnecessary template list.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.