Upgraded to v2: process is undefined #10088
-
|
Hi team, I've just updated an app to v2, and it's working great (xell done!) apart from one section: According to https://quasar.dev/quasar-cli/handling-process-env , this should work. Any idea why not? (It used to work in v1). The error is: vue-router.esm-bundler.js?f6c4:3248 ReferenceError: process is not defined Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
I think I got to the bottom of this. It looks like if the env vars are defined as X: "123", and I try to call process.env.Z , then the error "process is not defined" is generated (not "process.env is not defined", as you'd expect). |
Beta Was this translation helpful? Give feedback.
@ap1969 check this question to see if it helps: #9967