You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JS SDK] export field in package.json breaks Vite resolution #2757
When using the JS SDK with Vite, I encountered the following error:
✘ [ERROR] Failed to resolve entry for package "@opencode-ai/sdk".
The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
After checking the package.json, I noticed it includes a custom export field named development:
However, according to the package.json schema, there is no standard development condition.
This seems to cause Vite’s dependency resolver to fail.
Questions
• Why is the development field present here?
• Is it an intentional extension, or a mistake?
• Should this be replaced with something like "default" or another officially supported condition?
Activity
rekram1-node commentedon Sep 24, 2025
hmm we will fix this
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!