-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix [ERR_REQUIRE_ESM] error when importing hf_transformers #5746
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
5a9b26a
to
bc934b1
Compare
Hey @JonaMX! Thanks for this and sorry for missing this issue for so long! I've used an alternate fix involving a dynamic import from one of the other items in the thread. A bit less funky than running a function in a string. But it looks like it fixed it based on the CJS import test I added. Will merge if it passes CI! |
Thank you for this! |
Thank you for this @JonaMX |
@JonaMX is a hero among champions |
Fixes #2992