title: Native-React + Expo: Unable to resolve "@expo/vector-icons/fonts/Ionicons.ttf" from "src/boot/setup.js"
body: <p>I am just starting out on React Native <em>0.57.1</em> and expo <em>2.21.2</em> using <a href="https://github.com/Keftaa/expo-redux-boilerplate/blob/master/src/boot/setup.js#L22" rel="nofollow noreferrer">a boilerplate code that attempts to load a font</a> during startup with the command <code>npm start</code> or <code>expo start</code>:</p>
  
  <pre><code>import * as Expo from "expo";
  
  ....
  
  async componentWillMount() {
      await Expo.Font.loadAsync({
          Ionicons: require("@expo/vector-icons/fonts/Ionicons.ttf"),
      });
  
      this.setState({ isReady: true });
  }
  </code></pre>
  
  <p>This gives an error</p>
  
  <blockquote>
    <p>Unable to resolve "@expo/vector-icons/fonts/Ionicons.ttf" from "src/boot/setup.js"</p>
  </blockquote>
  
  <p><strong>Attempt #1:</strong> <code>npm install --save @expo/vector-icons</code>. However, doing this does not solve the error.</p>
  
  <p>Why is this happening, and how can we resolve this issue? Thank you!</p>
  
  <hr>
  
  <p><strong>Update:</strong> Following the suggestions of both mialnika and Carlos Abraham, the error is fixed but a new one is encountered:</p>
  
  <blockquote>
    <p>The Expo SDK requires Expo to run. It appears the native Expo modules are unavailable and this code is not running on Expo.</p>
  </blockquote>
  
  <p>This is from running the RN app in Expo's development mode, connected through LAN, using the iOS Expo client on an actual iPhone.</p>
  
  <p>No such error appears from a fresh <code>expo init</code> project</p>