Skip to content

@opencode-ai/plugin package doesn't work in Node #10467

Closed

Description

@alexgleason

Description

I want to use OpenCode's tool definition in a Node.js project, but this makes the project not runnable in Node:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'node_modules/@opencode-ai/plugin/dist/tool' imported from node_modules/@opencode-ai/plugin/dist/index.js

The issue is that this package does not include .js file extensions on the imports.

Activity

  1. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. alexgleason commented on Jan 25, 2026

    @alexgleason
    Author

    Closing as a duplicate of #8006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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