WaspW
Wasp2y ago
mgp25

Can't find variable: process

I am lately getting ReferenceError: Can't find variable: process which is caused by /server/config.ts and points to:

  all: {
    env,
    isDevelopment: env === 'development',
    port: parseInt(process.env.PORT) || 3001,
    databaseUrl: process.env.DATABASE_URL,
    allowedCORSOrigins: [],
    auth: {
      jwtSecret: undefined
    }
  },


As far as I know, this should be only run in the server and not the client and therefore causing the error. I have not changed anything within the Wasp Project. No matter what I do, once I run
wasp start
the project only shows a blank page with that error in the web console.

Any idea what could happen?

OS: MacOS
Node version: 18.20.3
Wasp version: 0.13.2
Was this page helpful?