Skip to content

fix: dev toolbar throwing SourceMapConsumer import error on every dev page load - #2282

Open
adipascu wants to merge 2 commits into
solidjs:mainfrom
adipascu:fix-dev-toolbar-cjs-deps
Open

fix: dev toolbar throwing SourceMapConsumer import error on every dev page load#2282
adipascu wants to merge 2 commits into
solidjs:mainfrom
adipascu:fix-dev-toolbar-cjs-deps

Conversation

@adipascu

@adipascu adipascu commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Addresses an existing open issue: fixes #000
  • Tests for the changes have been added (for bug fixes / features)

What is the current behavior?

With the dev toolbar enabled, every dev page load throws:

The requested module '/@fs/.../source-map-js/source-map.js' does not provide an export named 'SourceMapConsumer'

source-map-js and error-stack-parser are CommonJS with neither an exports nor a module field, so Vite serves them untransformed unless they are pre-bundled. ErrorBoundary imports DevToolbar statically, so this fires on healthy pages rather than only on errors.

This is a v2 regression. #1231 added both to optimizeDeps in 2024 and every published v1 still carries it. The v2 src/config/index.ts is a rewrite that never did, so every v2 release is affected, 2.0.0-alpha.0 through 2.0.0.

What is the new behavior?

Both are pre-bundled again, on the client environment, gated on devOverlay.

Other information

The @solidjs/start > prefix is required. Both are dependencies of @solidjs/start rather than of the app, so a bare specifier does not resolve from the project root under pnpm and Vite skips the entry silently.


Aside: I am currently available for web contracting or full-time work. Contact: adrian@pascu.be.

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ec4c822

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solidjs/start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit ec4c822
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a879492f8e6b00008e94cbb
😎 Deploy Preview https://deploy-preview-2282--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/start@2282

commit: ec4c822

@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from 40e5e97 to 83eb0b4 Compare August 4, 2026 19:34
@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from 83eb0b4 to c2ed103 Compare August 4, 2026 23:14
@adipascu adipascu changed the title fix: pre-bundle the dev toolbar's CommonJS dependencies fix: restore the dev toolbar's optimizeDeps entries dropped in the Vite rewrite Aug 4, 2026
@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from c2ed103 to d57077a Compare August 4, 2026 23:33
Comment thread packages/start/src/config/index.ts
@brenelz

brenelz commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Is this good to go then?

@adipascu
adipascu marked this pull request as ready for review August 21, 2026 14:46
@adipascu

Copy link
Copy Markdown
Contributor Author

@brenelz good to go. If you'd rather drop the CommonJS dependencies from the toolbar entirely instead, I can do that as a follow-up.

@adipascu adipascu changed the title fix: restore the dev toolbar's optimizeDeps entries dropped in the Vite rewrite fix: dev toolbar throwing SourceMapConsumer import error on every dev page load Aug 21, 2026
@lxsmnsyc

Copy link
Copy Markdown
Member

@adipascu if there's a good alternative for source-map processing, that would be great

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.

3 participants