TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
neilpopham opened this issue · comments
Hi, probably me being dim but I'm getting this error when running npm run watch
.
.ticbundle.json
{
"root":"src",
"wait":200,
"metadata":{
"title":"foo",
"author":"neilpopham@gmail.com",
"desc":"foo",
"script":"wren",
"input":null,
"saveid":null
},
"output":{
"path":"./",
"extension":"wren",
"name":"build"
},
"files":[
"bundle.wren",
"player.wren"
],
"after":null
}
package.json
{
"scripts": {
"watch": "tic-bundle"
},
"devDependencies": {
"tic-bundle": "^3.2.0"
}
}
error:
> watch
> tic-bundle
node:internal/validators:119
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 new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Object.resolve (node:path:167:9)
at Object.<anonymous> (C:\Users\Neil\AppData\Roaming\com.nesbox.tic\TIC-80\tests\wren\tic-bundle\node_modules\tic-bundle\bin.js:24:19)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
code: 'ERR_INVALID_ARG_TYPE'
}
@neilpopham Fixed in version 3.2.1