When i try to run yarn test on node version 14.1.0. it exits the process with some error message.

yarn test on Node version 14.1.0Hey @ganeshmani thanks for submitting this issue! ๐
I'm having trouble reproducing this error. I am able to run yarn test without issue using node v14.1.0. Can you make sure that you are following the instructions in CONTRIBUTING.MD and post a more detailed description of how to reproduce? Thanks!
I couldn't reproduce it either. It'd be great to get more information ๐
I have a similar, but probably unrelated to the issue experienced by @ganeshmani.
I was trying to deploy my blitz app on a fresh Ubuntu 18.04 but with Node 14 I would get a myriad of these issues:
blitz build I could not export types from the db object, which was essentially just const db = new PrismaClient()PrismaClient.blitz db migrate I would get Everything up-to-date, but when I inspected the postgres db via psql, no tables were created except _Migration. This table was also empty. List of relations
Schema | Name | Type | Owner
--------+-------------------------+----------+----------
public | _Migration | table | postgres
I realised later that Everything up-to-date is the output from prisma migrate save command, the output from blitz after that should be like:
.....
Everything up-to-date
๐๏ธโ migrate up
.....
@prisma/cli and ran prisma migrate save it would work, but if I ran prisma migrate up, I would get the error that the DATABASE_URL environment variable was not defined. The error would be the same, whether or not I used an .env file or declared the connection string directly in schema.prisma. The only thing that worked was it I did this:$ DATABASE_ENV=postgresql://postgres:password@localhost:5432/db prisma migrate up`
I would run all prisma commands with --experimental --create-db --schema schema.prisma
I saw this issue and tried afresh with Node 12 instead, and magically, everything went fine.
These might be unique to my project, but if I have time I will see if I can recreate on a fresh blitz project.
Sorry, I was viewing github on my phone and accidentaly move this issue
Most helpful comment
I have a similar, but probably unrelated to the issue experienced by @ganeshmani.
I was trying to deploy my blitz app on a fresh Ubuntu 18.04 but with Node 14 I would get a myriad of these issues:
blitz buildI could not export types from thedbobject, which was essentially justconst db = new PrismaClient()PrismaClient.blitz db migrateI would getEverything up-to-date, but when I inspected the postgres db viapsql, no tables were created except_Migration. This table was also empty.I realised later that
Everything up-to-dateis the output fromprisma migrate savecommand, the output from blitz after that should be like:@prisma/cliand ranprisma migrate saveit would work, but if I ranprisma migrate up, I would get the error that theDATABASE_URLenvironment variable was not defined. The error would be the same, whether or not I used an.envfile or declared the connection string directly inschema.prisma. The only thing that worked was it I did this:I would run all
prismacommands with--experimental --create-db --schema schema.prismaI saw this issue and tried afresh with Node 12 instead, and magically, everything went fine.
These might be unique to my project, but if I have time I will see if I can recreate on a fresh blitz project.