Error: Dynamic require of "node:buffer" is not supported

I re-deployed my sveltekit pages project. I hadnt added any new dependencies. I also havent upgraded any existing dependencies. However, I'm now getting an error 500. And when I tail the logs I see:
Error: Dynamic require of "node:buffer" is not supported
Error: Dynamic require of "node:buffer" is not supported
Any idea how I resolve this?
1 Reply
Magick
MagickOP5mo ago
I've found this is caused by using import jwt from 'jsonwebtoken'
Want results from more Discord servers?
Add your server