Skip to content

Cannot find module @opencode-ai/sdk@latest when moduleResolution=nodenext #1663

Closed

Description

@zWingz
Image

My tsconfig declare moduleResolution=nodenext and the sdk's package.type was delcare as module in package.json, and It must be import file with .js extension

Image

It should change type to commonjs from module or append the extension with .js

Activity

  1. changed the title [-]Cannot find module @opencode-ai/sdk@latest[/-] [+]Cannot find module @opencode-ai/sdk@latest when moduleResolution=nodenext[/+] on Aug 7, 2025
  2. thdxr commented on Aug 7, 2025

    @thdxr
    Member

    we need to fix our build process

  3. self-assigned this
    on Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions