Empty options in "team" prompt on `netlify init`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
Describe the bug
An error popped up when selecting the project, and the options to select a project team were not visible
Steps to reproduce
install the netlify cli latest
run netlify init
select create & configure new project
the team options will be empty
upon clicking enter, the error pops up
Configuration
No response
Environment
TypeError: Cannot read properties of undefined (reading 'value')
at ListPrompt.getCurrentValue (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\inquirer\lib\prompts\list.js:145:53)
at C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\operators\map.js:10:37
at OperatorSubscriber._this._next (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at Subscriber.next (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\operators\take.js:15:32
at OperatorSubscriber._this._next (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at Subscriber.next (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at Interface.handler (C:\Users\fifth\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\rxjs\dist\cjs\internal\observable\fromEvent.js:59:31)
at Interface.emit (node:events:536:35)
at [_onLine] [as _onLine] (node:internal/readline/interface:415:12)
System:
OS: Windows 11 10.0.26200
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Binaries:
Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (140.0.3485.66)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem through netlify init, selecting “create & configure new project,” and inspect the team prompt and the reported inquirer list error. Done means the team options are visible and pressing Enter completes the prompt without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100