You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ node -p "require('ava')"path.js:39 throw new ERR_INVALID_ARG_TYPE('path', 'string', path); ^TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.relative (path.js:1173:5) at Object.<anonymous> (/private/var/folders/2_/qczp184x76b2nl034sq5hvxw0000gn/T/tmp.x2ORUONLHR/node_modules/ava/lib/worker/ensure-forked.js:8:18) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18)
This output isn't useful at all:
The problem is in this line:
ava/lib/worker/ensure-forked.js
Line 8 in fd73358
When using the REPL,
process.argv[1]
is empty. We should detect this and have a better error message.The text was updated successfully, but these errors were encountered: