Skip to content

fix(browser-metro): declare acorn-jsx as a direct dependency#20

Open
Saurabhwashere wants to merge 1 commit intoRapidNative:mainfrom
Saurabhwashere:fix/browser-metro-declare-acorn-jsx
Open

fix(browser-metro): declare acorn-jsx as a direct dependency#20
Saurabhwashere wants to merge 1 commit intoRapidNative:mainfrom
Saurabhwashere:fix/browser-metro-declare-acorn-jsx

Conversation

@Saurabhwashere
Copy link
Copy Markdown

transform-error.ts imports acorn-jsx (added in 1.0.15 alongside the acorn-based syntax error reporter) but the package was never listed in browser-metro/package.json's dependencies. In a workspaced monorepo it silently resolves via dev-time workspace hoisting; published consumers hit MODULE_NOT_FOUND at first import of Bundler / IncrementalBundler.

Repro against the npm artifact:

npm init -y
npm i browser-metro@1.0.17
node -e 'require("browser-metro")'
# → Error: Cannot find module 'acorn-jsx'

Fix is a one-line dependency add; ^5.3.2 matches what the acorn@8 ecosystem converges on.

transform-error.ts imports `acorn-jsx` (added in 1.0.15 alongside the
acorn-based syntax error reporter) but the package was never listed in
browser-metro/package.json's dependencies. In a workspaced monorepo it
silently resolves via dev-time workspace hoisting; published consumers
hit MODULE_NOT_FOUND at first import of Bundler / IncrementalBundler.

Repro against the npm artifact:

    npm init -y
    npm i browser-metro@1.0.17
    node -e 'require("browser-metro")'
    # → Error: Cannot find module 'acorn-jsx'

Fix is a one-line dependency add; ^5.3.2 matches what the acorn@8
ecosystem converges on.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

@Saurabhwashere is attempting to deploy a commit to the Shaper Studio Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant