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
yarn run v1.22.22
$ pal g && npm -s run generate:prisma && npm -s run generate:nexus
TypeError: The "to" argument must be of type string. Received an instance of Object
Code: ERR_INVALID_ARG_TYPE
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
What did I do wrong?
Tested Node Versions: v22.2.0, v20.13.1
The text was updated successfully, but these errors were encountered:
log.d(chalk.dim(`Prisma Schema loaded from ${relative(process.cwd(),schemaPath)}`));
I found the cause. The schemaPath is nested in the form of schemaPath.schemaPath here. The nested schemaPath.schemaPath appears as an absolute path. Therefore, the issue arises because path.relative() receives to in an object format. Consequently, on line 8, you need to change const schemaPath = await getSchemaPath0(path); to const { schemaPath } = await getSchemaPath0(path);.
The above issue appears to stem from the @prisma/internals version. It seems that fixing the @prisma/internals package to version 5.2.0 instead of using ^5.2.0 will resolve this issue.
Steps of reproduce
@paljs/cli create
What did I do wrong?
Tested Node Versions: v22.2.0, v20.13.1
The text was updated successfully, but these errors were encountered: