fix(apollo-react, apollo-wind): bump react-syntax-highlighter to ^16.1.1 (ESM fix)#808
Merged
Merged
Conversation
16.1.0 has broken ESM exports (extensionless imports in dist/esm/) that fail under Node v24 strict ESM resolution. apollo-react's ap-chat code component imports from the ESM path, triggering the issue in consumers. 16.1.1 adds .js extensions to all ESM imports. See: react-syntax-highlighter/react-syntax-highlighter#627
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Dependency License Review
License distribution
Excluded packages
|
There was a problem hiding this comment.
Pull request overview
Updates apollo-react’s react-syntax-highlighter dependency to pick up upstream’s ESM export fix (adds .js extensions in ESM build) to avoid strict ESM resolution failures in newer Node versions.
Changes:
- Bump
react-syntax-highlighterinpackages/apollo-reactfrom^16.1.0to^16.1.1. - Update
pnpm-lock.yamlto resolvereact-syntax-highlighterto16.1.1.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-lock.yaml | Locks react-syntax-highlighter to 16.1.1 for the workspace. |
| packages/apollo-react/package.json | Raises the minimum react-syntax-highlighter version to ^16.1.1 in apollo-react. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Contributor
📦 Dev Packages🧹 Dev packages cleaned up after PR close. Last updated: 2026-06-11 14:26:48 PT |
CalinaCristian
approved these changes
Jun 11, 2026
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.
Summary
react-syntax-highlighterfrom^16.1.0to^16.1.1in apollo-react16.1.0has broken ESM exports (extensionless imports indist/esm/) that fail under Node v24's strict ESM resolution16.1.1adds.jsextensions to all ESM imports: fix: ESM missing.jsreact-syntax-highlighter/react-syntax-highlighter#627apollo-react'sap-chat/codecomponent imports fromreact-syntax-highlighter/dist/esm/styles/prism, triggering the issue in consumers (e.g. traceview-ui)Before
"Cannot find module" errors in testing

After
Successful test coverage run

Test plan
react-syntax-highlighteroverride after this ships