mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 09:42:15 +03:00
npm ci / next build fail on Node 24/26 because the optional @huggingface/transformers@3.5.2 pins onnxruntime-node@1.21.0, whose NAN native code no longer compiles against newer V8 - npm silently skips the whole optional subtree, and Turbopack fails the build with 'Module not found: Can't resolve @huggingface/transformers' (lazy import in src/lib/memory/embedding/transformersLocal.ts). Fix: move @huggingface/transformers out of optionalDependencies (npm ci can never skip it), bump to ^4.2.0, add onnxruntime-node ~1.24.3 (napi prebuilds, no node-gyp). Verified on Node 26.6.0: npm ci + production build succeed; both packages require() cleanly.
1.3 MiB
1.3 MiB