Skip to content

Error after selecting authentication method: "Cannot read properties of undefined (reading 'value')" #19

@lengjingxu

Description

@lengjingxu

What happened?

Error after selecting authentication method: "Cannot read properties of undefined (reading 'value')"

Description:
After choosing the authentication method (OpenAI) in the UI, I encountered an error.
My .env file is configured as follows:

OPENAI_API_KEY="sk-XXX"
OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
OPENAI_MODEL="qwen3-coder-plus"

However, after selecting "OpenAI" as the authentication method, the following error appears:

TypeError: Cannot read properties of undefined (reading 'value')
    at RadioButtonSelect.use_input_default.isActive (file:///Users/leng/Desktop/codepro/qwen-code/bundle/gemini.js:262489:37)
    ...
Node.js v23.6.1

Steps to Reproduce:

  1. Configure the .env file as above.
  2. Start the project.
  3. On the authentication selection screen, choose "OpenAI".
  4. Error occurs.

Expected behavior:
Should proceed to the next setup step without error.

Actual behavior:
App crashes with the above TypeError.

Additional context:

  • Node.js v23.6.1
  • macOS (if relevant)
  • [Add more details if needed]

标题:
选择授权方式后报错:"Cannot read properties of undefined (reading 'value')"

描述:
在界面选择授权方式(OpenAI)后出现报错。
我的 .env 文件配置如下:

OPENAI_API_KEY="sk-XXX"
OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
OPENAI_MODEL="qwen3-coder-plus"

选择 "OpenAI" 作为授权方式后,出现如下报错:

TypeError: Cannot read properties of undefined (reading 'value')
    at RadioButtonSelect.use_input_default.isActive (file:///Users/leng/Desktop/codepro/qwen-code/bundle/gemini.js:262489:37)
    ...
Node.js v23.6.1

复现步骤:

  1. 按上述内容配置 .env 文件。
  2. 启动项目。
  3. 在认证方式选择界面选择 "OpenAI"。
  4. 出现报错。

预期结果:
应当正常进入后续设置流程,不应报错。

实际结果:
应用崩溃,出现上述 TypeError。

补充信息:

  • Node.js v23.6.1
  • macOS

What did you expect to happen?

auth

Client information

Details
$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions