SolidJSS
SolidJS3y ago
1 reply
Wurfle

`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/solid-start-vercel@0.2.26_solid-start@0.2.26_vite@4.3.9/node_modules/solid-start-vercel/index.js:26:3)
    at Object.build (file:///Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/solid-start-vercel@0.2.26_solid-start@0.2.26_vite@4.3.9/node_modules/solid-start-vercel/index.js:144:7)
    at /Users/jonasluebbers/Repos/mala-project/node_modules/.pnpm/solid-start@0.2.26_@solidjs+meta@0.28.5_@solidjs+router@0.8.2_solid-js@1.7.6_solid-start-vercel@0.2.26_vite@4.3.9/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.
Was this page helpful?