#Error delaying payload with vite

2 messages · Page 1 of 1 (latest)

pseudo jay
#

I’m testing out deploying a vite version of my payload server. webpack was working.

All is good on the server side but when I open the project in the browser, I get this error:


Uncaught ReferenceError: process is not defined
    at index-b773e63d.js:246:38789
(anonymous) @ index-b773e63d.js:246

if I open that line in the browser:

var Gbn = Hbn.satisfies(process.version, ">=15.7.0");

I’m assuming this is an issue with payload using the vite bundler. I can change my process.env to use import.meta but it looks like that line isn’t related to anything of my code, it’s checking a version of a dependency.

Thanks for the help!

quasi troutBOT