The package tfjs-node is not working in version 26.8.1 of Node
Author: lucas-gomes-santanaCreated Sep 9, 2026Updated Sep 17, 2026
Labelstype:bugcomp:node.js
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.
Source: tensorflow/tfjs