You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code looks like it was written with only server-side Node execution in mind, so any client-side execution that lacks the global process variable will throw this exception.
The workaround for Vite during dev time is to inject a stub in the config file like:
define: {
'process.env': {}
}
However, that define option changes depending on when you run vite dev vs vite build, so you must use a different workaround for your builds. The simplest workaround is to stub something out in the <head> of your HTML like:
window.process = { env: {} };
If you already have an existing polyfill lib running, you can of course inject it that way.
I was using version 8.1.0 with no issues. I updated this morning to version 8.1.5 and I started getting this error:
Error: process is not defined
It occurs when I call a feed's
get()
method.The text was updated successfully, but these errors were encountered: