`ERR_INVALID_ARG_TYPE` on solid-start build

Getting this error. Not sure what's wrong with URL passed to rmSync because it should be supported in node 17.
solid-start build
version 0.2.26
adapter vercel
node:internal/errors:464
ErrorCaptureStackTrace(err);
^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of URL
at new NodeError (node:internal/errors:371:5)
at Function.from (node:buffer:322:9)
at _rmdirSync (node:internal/fs/rimraf:248:30)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1214:10)
at emptyDir (file:///Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/solid-start-vercel/index.js:26:3)
at Object.build (file:///Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/solid-start-vercel/index.js:144:7)
at /Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/solid-start/bin.cjs:185:20 {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v17.0.1
 ELIFECYCLE  Command failed with exit code 1.
solid-start build
version 0.2.26
adapter vercel
node:internal/errors:464
ErrorCaptureStackTrace(err);
^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of URL
at new NodeError (node:internal/errors:371:5)
at Function.from (node:buffer:322:9)
at _rmdirSync (node:internal/fs/rimraf:248:30)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1214:10)
at emptyDir (file:///Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/solid-start-vercel/index.js:26:3)
at Object.build (file:///Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/solid-start-vercel/index.js:144:7)
at /Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/solid-start/bin.cjs:185:20 {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v17.0.1
 ELIFECYCLE  Command failed with exit code 1.
1 Reply
Want results from more Discord servers?
Add your server