title: solc inside firebase functions causes deployment error
body: <p>I need to compile a smart contract inside a firebase function. I am using solc <code>&quot;solc&quot;: &quot;^0.8.13&quot;,</code> in my <code>package.json</code>.</p>
  <p>Code of the firebase function responsible to create the contact is;</p>
  <pre><code>const functions = require(&quot;firebase-functions&quot;);
  const admin = require('firebase-admin');
  const solc = require('solc');
  const fs = require(&quot;fs&quot;);
  const Web3 = require('web3');
  
  exports.createSC = functions.https.onCall((data, context) =&gt; {
      if (!context.auth) return { data: data, status: 'error', code: 401, message: 'Not signed in' }
      return new Promise((resolve, reject) =&gt; {
              admin.auth().getUser(data.owner)
                  .then(userRecord =&gt; {
  
                      //below function compiles the contract and returns abi/binary code etc
                      let contract = instantiateContract('sources/SnaphashToken.sol');
                      //use web3 to actually deploy contract
                      let web3;
                      //...code emitted...
                      resolve(contractDeployResult)
                  })
                  .catch(error =&gt; {
                      console.error('Error fetching user data:', error)
                      reject({ status: 'error', code: 500, error })
                  })
      });
  })
  </code></pre>
  <p>this works perfectly well when deployed on functions simulator locally but when deployed on firebase cloud I get this exception;</p>
  <pre><code>i  functions: updating Node.js 16 function ethereum-createSC(us-central1)...
  Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
  
  Functions deploy had errors with the following functions:
          ethereum-createSC(us-central1)
  </code></pre>
  <p>When I comment out <code>const solc = require('solc')</code> in my function, it deploys without problems. I really need to be able to deploy smart contracts after modifying based on user input and would appreciate a help on it</p>