πŸ› Bug Alert: Prisma DB Migration failing on NodeJS v12.19.0

There is an issue with Prisma DB Migration yarn rw db up on NodeJS v12.19.0. This may affect your deploys on Netlify and Vercel as well as local development (if you have installed NodeJS v12.19.0):

This issue will resolve when either NodeJS v12.19.1 is released or Prisma v2.9.0 is released and upgraded in a Redwood Release.

Workaround

Locally, upgrade NodeJS to v14 latest or roll back to v12.18.4.

For deployment, pin the version of NodeJS used for Netlify and Vercel build in your .nvmrc file.

Replace

lts/*

with

v12.18.4
1 Like

Thankfully Node.js 14 will become LTS at 2020-10-27! I guess Redwood 1.0 will target Node.js 14 anyway.

1 Like

The Prisma fixed has been merged into their codebase and will be included in Prisma v2.9.0 release tomorrow. So there’s a great chance we’ll have upgraded for Redwood v0.20.0.

Redwood will still support Node v12 as it’s scheduled for Maintenance support through May 2022. However, I think I’m in the minority of devs I know who are using v12 locally β€” most people are already on v14 and it’s working well. You’ll notice our CI tests run against both.