Repository navigation
fix(showcase): run dashboard dev on webpack so it resolves the shared cell-model fold - #5959
Merged
Merged
Conversation
… cell-model fold Turbopack has no resolve.extensionAlias parity (Next #82945), so 'next dev --turbopack' can't resolve the shared cell-model fold's .js->.ts specifiers and fails with Can't resolve './live-status.js'. The extensionAlias in next.config.ts (added in #5955) is honoured by webpack, which next build already uses. Drop --turbopack from the dev script so dev runs on webpack too and resolves the fold. Deploy path unaffected: the Dockerfile builds with 'next build' (webpack) and serves with 'next start' -- the dev script is never in the build or runtime path.
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
July 14, 2026 06:24
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Contributor
Production Digest-Pinning AuditAll 41 services digest-pinned. Run 2026-07-13 23:25:12 PDT — 0 finding(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
pnpm devon the shell-dashboard fails to start the fold-importing routes:The dashboard re-exports the shared cell-model fold from the harness (
showcase/harness/src/shared/cell-model/*.ts). Those fold files are authored for the harness's pure-Node-ESM runtime, so their internal relative imports carry explicit.jsextensions (e.g.import { formatTs } from "./format-ts.js") even though they exist on disk as.ts.export *does not rewrite those internal edges.next build(webpack) already resolves this via theresolve.extensionAliasinnext.config.ts(added in #5955), which tells webpack to try the TS sources for a.jsspecifier. But thedevscript forced Turbopack (next dev --turbopack), and Turbopack has noresolve.extensionAliasparity (Next #82945) — so dev couldn't resolve the fold.Fix
Drop
--turbopackfrom thedevscript. On Next 15.5.x,--turbopackis an explicit opt-in flag (there is no--webpackopt-out); plainnext devruns webpack, which honours the existingextensionAlias.buildis unchanged (next build= webpack). A note innext.config.tsexplains why dev uses webpack.Tradeoff: dev loses Turbopack's faster HMR and falls back to webpack-speed dev until Turbopack ships
extensionAliasparity (#82945), at which point dev can switch back.Red / Green (empirical, this branch)
Empirical proof of which bundler each command runs (Next 15.5.15 startup banner):
next dev --turbopack→▲ Next.js 15.5.15 (Turbopack)next dev→▲ Next.js 15.5.15(no "(Turbopack)" = webpack)RED —
next dev --turbopack,GET /:GREEN —
next dev(webpack),GET /:No
Can't resolve.No regression —
next build(webpack) still resolves the fold:(The fold compiles clean under webpack via the unchanged
extensionAlias.)Deploy path is UNAFFECTED
The
devscript is never in the build or runtime path.showcase/shell-dashboard/Dockerfilebuilds withnpx next build(webpack) and serves withnpx next start. This change touches only localpnpm dev— the built/deployed dashboard image is byte-for-byte identical.