Skip to content
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

Huggingface/transfomers v3.3.2 is throwing import errors when building on Nextjs 14 #35884

Open
2 of 4 tasks
cookiejul opened this issue Jan 25, 2025 · 0 comments
Open
2 of 4 tasks
Labels

Comments

@cookiejul
Copy link

System Info

Operating System: MacOS Sequoia 15.2
Hardware: M1 Macbook Pro

Who can help?

@zucchini-nlp @muellerzr

Image

I get this error when I runpnpm build to build my project to production but it kept throwing this error. I've tried downgrading the version of @huggingface/transformers package to v3.0.0 and v3.0.2 but I can't even get the model to run at all.

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Here are the steps needed to reproduce the error

  1. Set up a simple nextjs app
  2. pnpm install @huggingface/transformers
  3. run pnpm build

Expected behavior

The expected behavior is to be able to successfully build the nextjs application so that I can host it and allow users to use my app

@cookiejul cookiejul added the bug label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant