Skip to content

Next.js example breaks with v3 #911

Closed
@stinoga

Description

@stinoga

Question

Are there steps documented anywhere for running V3 in your app? I'm trying to test it out via these steps:

  1. Pointing to the alpha in my package.json: "@huggingface/transformers": "^3.0.0-alpha.10",
  2. npm i
  3. cd node_modules/@hugginface/transformers && npm i
  4. copy the webpack.config.js from the repo into the node_modules/@hugginface/transformers dir.
  5. npm run build in node_modules/@hugginface/transformers dir.

I then run my app, and get the following error:

ERROR in ../../node_modules/@huggingface/transformers/dist/transformers.js 42256:34-64
Module not found: Error: Can't resolve './' in '/node_modules/@huggingface/transformers/dist'
webpack compiled with 1 error

Thanks, I'm excited to test out the latest and greatest!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions