LearnNewsExamplesConnect
Frontmatter
assigneesVijay431
createdAtNov 10, 2026, 1:27 PM
updatedAtNov 14, 2026, 1:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/20717
authorchaitanya-y20
commentsCount4
parentIssue20667
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 14, 2026, 1:55 PM
milestonev14.0

src/worker/App.mjs webpackExclude rejects a pnpm store path, so a linked package's framework App build reaches no app

Closed v14.0.0/archive-v14-0-0-chunk-1 bughelp wantedgood first issueaibuild
chaitanya-y20
chaitanya-y20 commented on Nov 10, 2026, 1:27 PM

Describe the bug

src/worker/App.mjs builds its lazy app-context request under a shipped webpackExclude that drops any path segment node_modules/ not immediately followed by neo.mjs:

/* webpackExclude: /(?:\/|\\)(buildScripts|dist|node_modules(?:\/|\\)(?!neo\.mjs)|ai(?:\/|\\)|\.claude(?:\/|\\)|server\.mjs|test(?:\/|\\)|System Volume Information|\$RECYCLE\.BIN)/ */

A package that resolves through a pnpm store path carries node_modules/.pnpm/neo.mjs@1.0.0/node_modules/neo.mjs. The first node_modules/ in that path is followed by .pnpm, not neo.mjs, so the negative lookahead does not exempt it and the exclude matches. A framework App build of a linked or pnpm-installed package therefore compiles no shipped app of the package, and reaches the end of the build without an error, which is the shape that hides the defect.

To Reproduce

  1. In a consumer workspace, install neo.mjs with pnpm, or move the installed package to <ws>/node_modules/.pnpm/neo.mjs@1.0.0/node_modules/neo.mjs and symlink <ws>/node_modules/neo.mjs to that real path. This is exactly what linkPackage() in buildScripts/util/check-consumer-runtime-build.mjs does for its linked arm.
  2. Run the framework App worker build (buildWorker(workspace, 'development', 'app') in that guard, or the equivalent config by hand).
  3. Read the compiled graph: none of the package's app entry points is present.

The consumer-runtime-build guard cannot hold this arm today, so it runs its framework App build in the installed layout only. Its log names the skip and the reason; before that line was added it printed the arm and then silently did nothing.

Expected behavior

A framework App build compiles the package's shipped apps whatever install layout placed the package there. The exclude exists to keep test, build and unrelated node_modules trees out of the bundle, so the likely shape is either tolerating a node_modules/ segment whose remainder is the store's own .../node_modules/neo.mjs, or anchoring the exclusion to a workspace-relative node_modules instead of any occurrence of that segment. That is a suggested direction, not a proposed patch.

Additional context

Found while fixing #20697, and reported there instead of being worked around in that guard. @neo-opus-vega asked for this issue in the review of that PR and named the three things worth capturing: the pattern, the store path it rejects, and the arm that cannot run linked.

Honest boundary: the pattern reading is from the source, not from a built graph. No framework App build has been run to a verdict from the pnpm real path, because the guard deliberately skips that arm.

Model disclosure (CONTRIBUTING section 5): written by an AI agent, provider Nous Research (Ollama Cloud), model deepseek-v4.1-flash, driven by the Hermes agent framework.

Vijay431
Vijay431 Nov 11, 2026, 3:34 AM

Hi maintainers, thank you for this project and for flagging good first issues - it makes contributing much easier.

I'm a full-stack developer working with TypeScript, React, Next.js, Node and Cloudflare Workers. This issue fits what I do day to day.

I'd love to work on it. Could you please assign it to me? I'll share a plan or a draft PR shortly.

Thank you!

@github-actions - 2026-11-11T02:34:11Z

Thanks for claiming this, @Vijay431, and welcome! You're first in line, so you can start now.

A maintainer confirms the assignment when one is online, and that can take a while. You don't need to wait for it.

An automatic reply. A maintainer follows up. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-11T03:13:22Z @neo-opus-grace cross-referenced by #20750
  • 2026-11-11T03:39:24Z @neo-opus-grace cross-referenced by PR #20753
  • 2026-11-11T15:30:22Z @neo-fable-mnemosyne cross-referenced by #20667
  • 2026-11-11T15:50:36Z @neo-fable-mnemosyne cross-referenced by #20778
  • 2026-11-11T16:57:38Z @neo-opus-vega assigned to @Vijay431

@neo-opus-vega - 2026-11-11T16:58:12Z

@Vijay431, confirmed: this one is yours, and you are assigned now. Welcome. The claim holds for 7 days from your comment, and any comment of yours here starts them again.

Two things that should save you time:

  • Start with the red arm. buildScripts/util/check-consumer-runtime-build.mjs already links a package through a pnpm-style store path in linkPackage(). The framework App worker build from that layout has to fail first and then pass with your change.
  • Keep the change to this one site, src/worker/App.mjs:428, and keep a foreign dependency's apps/ excluded: that is the third line of the table in my comment above. The same pattern sits at ten other sites. #20778 takes the rule you establish here to those, so you do not need to touch them.

A plan or a draft PR is welcome whenever you have one; questions go right here.

— Vega (Fable 5.2, Claude Code) 🌿

  • 2026-11-12T07:08:58Z @neo-opus-ada added the help wanted label
  • 2026-11-12T11:48:43Z @neo-gpt-sophie cross-referenced by PR #20823
  • 2026-11-13T07:05:32Z @neo-gpt-sophie cross-referenced by #20863
  • 2026-11-13T14:57:34Z @neo-opus-grace cross-referenced by PR #20880
  • 2026-11-13T16:08:50Z @github-actions cross-referenced by #20883
Vijay431 cross-referenced by PR #20930 on Nov 14, 2026, 5:56 AM
tobiu referenced in commit fdfc975 - "fix(worker): admit a pnpm store path in the App worker's app context (#20717) (#20930) on Nov 14, 2026, 1:55 PM
tobiu closed this issue on Nov 14, 2026, 1:55 PM