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
0.9.5: a NEW .js file with JSX still fails LAND_MODULE_PARSE (follow-up to #32) #53
Follow-up to #32. Thank you for the quick fix in 0.9.5: an existing .js file with JSX now lands. A new.js file with JSX is still refused as LAND_MODULE_PARSE, so in a Next.js app we cannot add a component file or a route (app/**/page.js) at all.
Version: pullboard 0.9.5 (Ubuntu 26.04, Node 26.5, local runner plus one pull runner).
Repro
In a Next.js repo whose components are .js files with JSX, add a new file, e.g. web/src/app/seller/leads/delete-lead-dialog.js containing export function X() { return <div/>; }.
Build, gate and verify are all green (the gate runs the Next.js/Playwright suite, which compiles the file fine).
The land job refuses: LAND_MODULE_PARSE naming the new file.
Cause (packages/landing/src/io/guards.js, brokenModules): a changed module that fails importsIn at the tip is exempt only if it also fails at the base. For a new file the base source is null, and if (source === null) return true; counts it as broken, so a new file with JSX can never land.
Suggestion (any of these would do for us):
treat a file that is new at the base like one that failed at the base when its parse error is JSX/Flow syntax, or
parse .js/.mjs with JSX enabled when the project uses JSX (e.g. react in a package.json of the changed file's lane), or
a pullboard.json setting per lane, e.g. "jsxInJs": true.
Workaround we use meanwhile: new components go into existing .js files as named exports, and a new route file contains no JSX and only re-exports its component (export { Page as default } from "../parts.js"). It works, but it bends the code structure on every web item.
Fixed on main and shipping in 0.9.6. A new .js file with JSX now lands; a new file with a real syntax error is still refused and named. Thanks for following up on #32, @klartext79!
Activity
coreyolson commentedon Dec 4, 2026
Fixed on main and shipping in 0.9.6. A new
.jsfile with JSX now lands; a new file with a real syntax error is still refused and named. Thanks for following up on #32, @klartext79!