Error ERR_INVALID_ARG_TYPE while Generating [Resolved]

Just tried v2025.10 this morning, installation works properly.

While generating, I got this error message:

The error says:

node:internal/validators:162
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
          ^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at Object.join (node:path:433:7)
    at C:\Users\User\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:286167

Issue has been resolved, after upgrading the NodeJS to the latest version, as of today is v22.15.1.

1 Like
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
      ^

TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
at validateString (node:internal/validators:162:11)
at Object.join (node:path:433:7)
at C:\Users\abura\AppData\Roaming\PHPMaker2025\node_modules@phpmaker\core\phpmaker.js:8:286167
at Array.filter ()
at global.CompileExtensions (C:\Users\abura\AppData\Roaming\PHPMaker2025\node_modules@phpmaker\core\phpmaker.js:8:286144)
at main (C:\Users\abura\AppData\Roaming\PHPMaker2025\node_modules@phpmaker\core\phpmaker.js:8:290643)
at Object. (C:\Users\abura\AppData\Roaming\PHPMaker2025\node_modules@phpmaker\core\phpmaker.js:8:291773)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32) {
code: ‘ERR_INVALID_ARG_TYPE’
}
Node.js v20.10.0
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).

Make sure you use Node.js >= 18.20.

After updating your Node.js, you can run node --version in command prompt or Powershell to verify the version.

You should use Node.js >= v22.