Skip to content

fix: replace default import with named import from 'hastscript' module#7790

Open
TusharThakur04 wants to merge 3 commits intowebpack:mainfrom
TusharThakur04:fix/hastscript-default-export
Open

fix: replace default import with named import from 'hastscript' module#7790
TusharThakur04 wants to merge 3 commits intowebpack:mainfrom
TusharThakur04:fix/hastscript-default-export

Conversation

@TusharThakur04
Copy link
Contributor

Summary
This PR resolves the runtime error caused by importing 'hastscript' as a default export. The import has been updated to use the correct named export instead.

What kind of change does this PR introduce?
fix

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
no

If relevant, what needs to be documented once your changes are merged or what have you already documented?

@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Error Error Feb 8, 2026 3:23pm

Request Review

@TusharThakur04
Copy link
Contributor Author

@alexander-akait can you please review, its failing one test

@alexander-akait
Copy link
Member

SyntaxError: The requested module 'hastscript' does not provide an export named 'h'

It means no h in export

@TusharThakur04
Copy link
Contributor Author

TusharThakur04 commented Feb 7, 2026

@alexander-akait

Screenshot from 2026-02-08 00-00-59

its actually exporting h

@alexander-akait
Copy link
Member

it means something buggy in eslint

@TusharThakur04
Copy link
Contributor Author

@alexander-akait yeah i searched a little bit, i think hastscript has different versions on CI and dev env
should i do a namespace import

import * as hastscript from 'hastscript'

or what you recommend?

@alexander-akait
Copy link
Member

Yeah, you can to use import * as hastscript from 'hastscript'

@alexander-akait
Copy link
Member

Still broken

@TusharThakur04
Copy link
Contributor Author

i think this time error is not about hastscript module

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.

2 participants