Open janpio opened 4 years ago
This schema.prisma:
schema.prisma
generator client { provider = "prisma-client-js" output = "C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\chinook\node_modules\prisma-client" }
leads to this error:
C:\Users\Jan\Documents\prisma-test-utils-automation (master -> origin) (prisma-test-utils-automation@0.0.0) λ yarn prisma2 generate --schema=C:\\Users\\Jan\\Documents\\prisma-test-utils-automation\\dbs\\chinook\\schema.prisma yarn run v1.21.1 $ C:\Users\Jan\Documents\prisma-test-utils-automation\node_modules\.bin\prisma2 generate --schema=C:\\Users\\Jan\\Documents\\prisma-test-utils-automation\\dbs\\chinook\\schema.prisma Error: Schema parsing error: Unexpected token. Expected one of: string interpolation start --> schema.prisma:4 | 3 | provider = "prisma-client-js" 4 | output = "C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\chinook\node_modules\prisma-client" | ^ Unexpected token. | Validation Error Count: 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
(These paths are a bit unnatural, but are generated by prisma-test-utils-automation and should in theory just work)
prisma-test-utils-automation
@janpio are we sill using test utils?
Yes, not really relevant to the problem here though. The Windows style path was the problem.
This is still relevant in 2.22
This
schema.prisma
:leads to this error:
(These paths are a bit unnatural, but are generated by
prisma-test-utils-automation
and should in theory just work)