Skip to content

TypeError: undefined is not an object (evaluating 'mode.type') #4690

@a-essam23

Description

@a-essam23

Description

I saw a few old issues for this but all the solutions do not work. I'm using the default build mode. I've even deleted my opencode.json config file. It's important to note it's not broken everywhere. Only in some directories. My project directories (where I've used opencode before and consistently are broken) while using it in others is working fine. I'm unsure where the issue is.

I've tried using:
1- copilot
2- opencode zen (grok fast)

I've tried:
1- logging in again
2- rm -rf ~/.cache/opencode/
3- npm update in ~.opencode and ~/.cache/opencode

Nothing works thus far.

OpenCode version

v1.0.107

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

arch-linux

Terminal

kitty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions