title: How to import ErrorUtils in React Native
body: <ul>
  <li>RN version: 0.50</li>
  <li>Testing on Android, haven't tested on iOS</li>
  </ul>
  
  <p>I am trying to use <code>ErrorUtils.setGlobalHandler</code> as described in this github issue: <a href="https://github.com/facebook/react-native/issues/1194" rel="noreferrer">https://github.com/facebook/react-native/issues/1194</a></p>
  
  <p>However, what is not clear from the issue is how to import ErrorUtils.  It's not in the react documentation: <a href="https://facebook.github.io/react-native/docs/0.50/getting-started.html" rel="noreferrer">https://facebook.github.io/react-native/docs/0.50/getting-started.html</a></p>
  
  <p>Previously, in RN 0.41, I was able to import ErrorUtils with <code>import ErrorUtils from "ErrorUtils";</code>  However, in 0.50 I am getting a red react popup with the following message when I try to import ErrorUtils like this:</p>
  
  <pre><code>com.facebook.react.common.JavascriptException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false' failed to load.
  </code></pre>
  
  <p>I've also tried <code>import { ErrorUtils } from 'react-native';</code> but it doesn't seem to exist there.  The error is:</p>
  
  <pre><code>Cannot read property 'setGlobalHandler' of undefined
  </code></pre>
  
  <p>How do I properly import ErrorUtils in RN 0.50?</p>