Skip to content

0.9.5: a NEW .js file with JSX still fails LAND_MODULE_PARSE (follow-up to #32) #53

Done

Description

@klartext79

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

  1. 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/>; }.
  2. Build, gate and verify are all green (the gate runs the Next.js/Playwright suite, which compiles the file fine).
  3. 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.

Activity

  1. coreyolson commented on Dec 4, 2026

    @coreyolson
    Collaborator

    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!

  2. added
    fixed
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions