Bug: Fails to generate json after upgrading prisma to 2.20.1
Closed this issue ยท 1 comments
akshilshah commented
Hello,
I have just updated my Prisma version to 2.20.1
and after running prisma generate
I get the following error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Object
at Object.mkdir (internal/fs/promises.js:372:10)
at Object.onGenerate (/home/ubuntu/work/project-apps/project/api/node_modules/prisma-json-schema-generator/dist/index.js:30:27)
at LineStream.<anonymous> (/home/ubuntu/work/project-apps/project/api/node_modules/@prisma/generator-helper/dist/generatorHandler.js:13:46)
at LineStream.emit (events.js:314:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
at LineStream.Readable.push (_stream_readable.js:213:10)
at LineStream.Transform.push (_stream_transform.js:152:32)
at LineStream._pushBuffer (/home/ubuntu/work/project-apps/project/api/node_modules/@prisma/generator-helper/dist/byline.js:108:23)
at LineStream._transform (/home/ubuntu/work/project-apps/project/api/node_modules/@prisma/generator-helper/dist/byline.js:100:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Please let me know if more inputs are needed
Thanks
github-actions commented
๐ This issue has been resolved in version 1.2.2 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐