title: Error using Create-react-app with googleapis
body: <p>I am pretty new to React and I followed Heroku's guide to use <strong>Create-react-app</strong> to create a new react app. I want to use Google APIs to authenticate users through Google's OAuth2 and get the refresh token, so I followed the guide on Google APIs Node Client to install the 'googleapis' package with <code>npm install googleapis --save</code> but after I imported googleapis with <code>import {google} from 'googleapis'</code>, I got the following error when I hit <code>npm start</code>:</p>
  
  <pre><code>Uncaught TypeError: Cannot convert undefined or null to object
  at Function.getPrototypeOf (&lt;anonymous&gt;)
  at ./node_modules/google-p12-pem/node_modules/pify/index.js.module.exports (index.js:75)
  at Object../node_modules/google-p12-pem/build/src/index.js (index.js:6)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/gtoken/build/src/index.js (index.js:50)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/google-auth-library/build/src/auth/jwtclient.js (jwtclient.js:63)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/google-auth-library/build/src/auth/googleauth.js (googleauth.js:60)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/google-auth-library/build/src/index.js (index.js:18)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/googleapis/build/src/lib/googleapis.js (googleapis.js:60)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../node_modules/googleapis/build/src/index.js (index.js:18)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../src/App.js (App.css?9a66:26)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object../src/index.js (index.css?f255:26)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at fn (bootstrap 8c14a9046e11e185076c:88)
  at Object.0 (registerServiceWorker.js:117)
  at __webpack_require__ (bootstrap 8c14a9046e11e185076c:678)
  at ./node_modules/ansi-regex/index.js.module.exports (bootstrap 8c14a9046e11e185076c:724)
  at bootstrap 8c14a9046e11e185076c:724
  </code></pre>
  
  <p>What did I miss that cause this error?</p>