huggingface/transformers.js

Module not found: Can't resolve './' in Next.js

Closed this issue · 3 comments

System Info

"@huggingface/transformers": "3.0.0-alpha.21"
chrome: 129
OS: mac os
node: v20

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

Reference example Startup Error

Reproduction

○ Compiling /face ...
⨯ ./node_modules/.pnpm/@huggingface+transformers@3.0.0-alpha.21/node_modules/@huggingface/transformers/dist/transformers.js:32680:1
Module not found: Can't resolve './'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./pages/face/index.tsx
GET /face 500 in 2539ms
GET /face 500 in 2527ms

same here. how did you solve this?

same here. how did you solve this?

It solved my problem.

#1026 (comment)