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

Open
#8,746 4 comments 1 reaction 1 assignee View on GitHub

@nileshau-afk is already working on this.

Since Sep 11, 2026.

Assessment

This issue has not been assessed yet.

Description

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.

Dominant language
TypeScript
Stars
19.2k
Forks
2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tensorflow/tfjs

All issues in tensorflow/tfjs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.