title: ReferenceError: process is not defined
body: <p>I am running a k6 test and using env variables for some of the code. I keep getting this darn error though: </p>
  
  <p>ReferenceError: process is not defined</p>
  
  <p>I have tried using an alternate some people suggested in a similar issue using __ENV.yadda, but that did not work. </p>
  
  <pre><code>import http from "k6/http";
  
  let formData = {
    client_id: "LoadTesting",
    grant_type: "blah_blah",
    scope: "Scope",
  };
  const messageHeaders = {
    'Content-Type': 'Client Type',
  };
  
  let user = null;
  export function authorizeUser() {
    formData.client_secret = process.env.REACT_APP_CLIENT_SECRET;
    if (!user) {
      let res = http.post(`https://localhost:44341/connect/token`, formData, { headers: messageHeaders });
      if (res.status != 200) {
        console.log('res: ', res.status);
        throw new Error("couldn't load user");
      }
      user = JSON.parse(res.body).access_token;
      return user;
    }
  }
  </code></pre>
  
  <p>I just want my env variables to work!</p>