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
I'm getting the following error when executing sql-ts cli npm script:
> sql-ts --config sql-ts-config.json
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
Error [ERR_INPUT_TYPE_NOT_ALLOWED]: --input-type can only be used with string input via --eval, --print, or STDIN
at new NodeError (node:internal/errors:393:5)
at defaultResolve (node:internal/modules/esm/resolve:1118:25)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:525:22)
at node:internal/modules/run_main:58:28
at loadESM (node:internal/process/esm_loader:91:11)
at async handleMainPromise (node:internal/modules/run_main:65:12) {
code: 'ERR_INPUT_TYPE_NOT_ALLOWED'
}
Node.js v18.12.1
The text was updated successfully, but these errors were encountered:
I'm only able to recreate this if I manually put --input-type=module in the command that runs the CLI inside the .bin folder. By default this is omitted and it runs fine. I can't determine how that's being added.
However I have noticed that on Node 18 it fails at a later point, can you try updating to Node 20 and see if the error still persists?
I'm getting the following error when executing
sql-ts
cli npm script:The text was updated successfully, but these errors were encountered: