title: webpack build errors after installing firebase-admin "npm run webpack:server" - missing dependancies
body: <p>I have an angular universal app. During build I am getting all kinds of errors after trying to use <code>firebase-admin</code> on the server. For some reason i can get the server to build when firebase-admin is required.</p>
  
  <p><strong>build angular unversal server</strong></p>
  
  <p><code>webpack --config webpack.server.config.js --progress --colors</code></p>
  
  <p><strong>errors</strong></p>
  
  <blockquote>
    <p>WARNING in ./node_modules/hash-stream-validation/index.js
    Module not found: Error: Can't resolve 'fast-crc32c' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/hash-stream-validation'</p>
    
    <p>WARNING in ./node_modules/bytebuffer/dist/bytebuffer-node.js
    Module not found: Error: Can't resolve 'memcpy' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/bytebuffer/dist'</p>
    
    <p>ERROR in ./node_modules/@grpc/grpc-js/build/src/channel.js
    Module not found: Error: Can't resolve '../../package' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/@grpc/grpc-js/build/src'</p>
    
    <p>ERROR in ./node_modules/@google-cloud/firestore/build/src/v1beta1/firestore_client.js
    Module not found: Error: Can't resolve './firestore_client_config' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/@google-cloud/firestore/build/src/v1beta1'</p>
    
    <p>ERROR in ./node_modules/google-gax/build/src/operations_client.js
    Module not found: Error: Can't resolve './operations_client_config' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/google-gax/build/src'</p>
    
    <p>ERROR in ./node_modules/@google-cloud/storage/node_modules/mime/index.js
    Module not found: Error: Can't resolve './types/other' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/@google-cloud/storage/node_modules/mime'</p>
    
    <p>ERROR in ./node_modules/gtoken/node_modules/mime/index.js
    Module not found: Error: Can't resolve './types/other' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/gtoken/node_modules/mime'</p>
    
    <p>ERROR in ./node_modules/@google-cloud/storage/node_modules/mime/index.js
    Module not found: Error: Can't resolve './types/standard' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/@google-cloud/storage/node_modules/mime'</p>
    
    <p>ERROR in ./node_modules/gtoken/node_modules/mime/index.js
    Module not found: Error: Can't resolve './types/standard' in '/Users/ohabash/Dropbox/Sites/fornida-ng6/node_modules/gtoken/node_modules/mime'</p>
  </blockquote>
  
  <p>I think something like this might be a good solution but i dont know webpack that well. <a href="https://stackoverflow.com/a/44450118/3066142">https://stackoverflow.com/a/44450118/3066142</a></p>
  
  <p>this was also good info. but nothing helpful. If i cannot compile with webpack then  what is another way of doing this? <a href="https://github.com/googleapis/google-cloud-node/issues/1821" rel="noreferrer">https://github.com/googleapis/google-cloud-node/issues/1821</a></p>
  
  <hr>
  
  <p><strong>update</strong>
  I modified <code>webpack.server.config.js</code> so node_modules do not bundle. </p>
  
  <p><code>const nodeExternals = require('webpack-node-externals');</code></p>
  
  <pre><code>module.exports = {
     ...
     externals: [nodeExternals()],
     ...
  }
  </code></pre>
  
  <p>i think that fixed the problem above because the app was able to bundle without error. But now when i run the build there is an error at run time</p>
  
  <blockquote>
    <p>Error: Cannot find module 'zone.js/dist/zone-node'</p>
  </blockquote>