import error #26

Closed
opened 2026-02-16 02:17:45 -05:00 by yindo · 5 comments
Owner

Originally created by @Robert-Jia00129 on GitHub (Jun 30, 2025).

Error:

   Collecting page data  ...[SyntaxError: Named export 'githubLight' not found. The requested module '@uiw/codemirror-theme-github' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@uiw/codemirror-theme-github';
const { githubLight } = pkg;
]

> Build error occurred
[Error: Failed to collect page data for /] { type: 'Error' }
Originally created by @Robert-Jia00129 on GitHub (Jun 30, 2025). Error: ``` Collecting page data ...[SyntaxError: Named export 'githubLight' not found. The requested module '@uiw/codemirror-theme-github' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from '@uiw/codemirror-theme-github'; const { githubLight } = pkg; ] > Build error occurred [Error: Failed to collect page data for /] { type: 'Error' } ```
yindo closed this issue 2026-02-16 02:17:45 -05:00
Author
Owner

@rodrimaia commented on GitHub (Jun 30, 2025):

Also having the same issue

@rodrimaia commented on GitHub (Jun 30, 2025): Also having the same issue
Author
Owner

@marcusschiesser commented on GitHub (Jul 1, 2025):

When you're getting it?

@marcusschiesser commented on GitHub (Jul 1, 2025): When you're getting it?
Author
Owner

@Robert-Jia00129 commented on GitHub (Jul 1, 2025):

When I run npm run build. It seems like some imports in index.js importing packages from swc are broken.

@Robert-Jia00129 commented on GitHub (Jul 1, 2025): When I run `npm run build`. It seems like some imports in `index.js` importing packages from `swc` are broken.
Author
Owner

@Robert-Jia00129 commented on GitHub (Jul 1, 2025):

Might found the solution. Will follow up shortly

@Robert-Jia00129 commented on GitHub (Jul 1, 2025): Might found the solution. Will follow up shortly
Author
Owner

@Robert-Jia00129 commented on GitHub (Jul 1, 2025):

I did!!!
The issue is regarding how swc helpers are installed.

Prev Issue

Installing it via npm install @swc/helpers leads to the error. It's an older version of src helpers.

Fix

Run:
npm install --save-dev @swc/helpers@latest

@Robert-Jia00129 commented on GitHub (Jul 1, 2025): I did!!! The issue is regarding how swc helpers are installed. ### Prev Issue Installing it via `npm install @swc/helpers` leads to the error. It's an older version of src helpers. ## Fix Run: `npm install --save-dev @swc/helpers@latest`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#26