migrate icon indicating copy to clipboard operation
migrate copied to clipboard

The "path" argument must be of type string. Received undefined

Open seannam opened this issue 4 months ago • 2 comments

I'm getting an invalid arg type error.

macos 15.6.1 (24G90)
Node.js v20.19.5
Python 3.13.5

% migrate

node:path:1292
      validateString(arg, 'path');
      ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at Object.join (node:path:1292:7)
    at Object.<anonymous> (/Users/user/.nvm/versions/node/v20.19.5/lib/node_modules/@tryghost/migrate/node_modules/@tryghost/version/lib/version.js:4:34)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/Users/user/.nvm/versions/node/v20.19.5/lib/node_modules/@tryghost/migrate/node_modules/@tryghost/version/index.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1521:14) {
  code: 'ERR_INVALID_ARG_TYPE'
}

seannam avatar Sep 21 '25 22:09 seannam