The package tfjs-node is not working in version 26.8.1 of Node

オープン
#8,746 コメント 4 件 リアクション 1 件 担当者 1 名 GitHub で見る

@nileshau-afk がすでに取り組んでいます。

2026年9月11日 から。

評価

この issue はまだ評価されていません。

説明

comp:node.js type:bug

The dependency tfjs-node is not compatible with the node version installed on my machine. I'm using it in a personal project

It's returning this error:

TypeError: (0 , util_1.isNullOrUndefined) is not a function
    at createTensorsTypeOpAttr (/home/lucas/Reconhecimento-Facial-Para-Escolas/backend/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/nodejs_kernel_backend.j
s:675:38)
    at NodeJSKernelBackend.executeSingleInput (/home/lucas/Reconhecimento-Facial-Para-Escolas/backend/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/nodejs_k
ernel_backend.js:205:24)
    at Object.kernelFunc (/home/lucas/Reconhecimento-Facial-Para-Escolas/backend/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/kernels/Abs.js:35:24)
    at kernelFunc (/home/lucas/Reconhecimento-Facial-Para-Escolas/backend/node_modules/.pnpm/@[email protected]/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4707:32)

I noticed that the issue #8609 has already described the same problem, and the pull request #8425 has fixed it. But there's no new releases after this. Will support for newer versions of Node be added soon or not?

I'm using version 26.8.1 of Node.

主要言語
TypeScript
スター
19.2k
フォーク
2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/tfjs のほかの issue

tensorflow/tfjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。