Skip to content

fix: Keep @oclif/core external in editor server build - #68

Merged
Manrich121 merged 1 commit into
mainfrom
fix/edit-config-missing-deps
Sep 15, 2026
Merged

Manrich121 merged 1 commit into
mainfrom
fix/edit-config-missing-deps

Conversation

@Manrich121

@Manrich121 Manrich121 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Problem

Running powersync edit config started the editor server, then returned a 500 on every request with:

Error: Cannot find module 'minimatch'
      Require stack:
      - .../cli-plugin-config-edit/editor-dist/server/_ssr/files.functions-*.mjs
Screenshot 2026-09-14 at 16 18 10

Solution

Mark @oclif/core external for both the SSR pass (ssr.external) and the nitro pass (rollupConfig.external) so it is loaded from the published plugin's own node_modules, where minimatch resolves as an @oclif/core dependency.

AI Disclosure

I used Claude Code 5 Opus to debug this issue and implement the fix

@Manrich121
Manrich121 merged commit 556cbca into main Sep 15, 2026
6 checks passed
@Manrich121
Manrich121 deleted the fix/edit-config-missing-deps branch September 15, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants