title: Error trying to import a module on expo bunddle: Unable to resolve "../shared/baseUrl" from "components/MenuComponent.js"
body: <p>I have been trying to run react-native app on expo on my android phone. I haven't been able because I am getting an error <em>Unable to resolve "../shared/baseUrl" from "components/MenuComponent.js"</em> on expo.</p>
  
  <p>This is the folder tree of my project where you can see baseUrl and MenuComponent.js (The other js modules on components import baseUrl.js with error.):</p>
  
  <p><a href="https://i.stack.imgur.com/JBlxq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JBlxq.png" alt="enter image description here"></a></p>
  
  <p>The following is the imports section of the components/MenuComponent.js:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { Component } from 'react';
  import { View, FlatList } from 'react-native';
  import { Tile } from 'react-native-elements';
  import { connect } from 'react-redux';
  import { baseUrl } from '../shared/baseUrl';</code></pre>
  </div>
  </div>
  </p>
  
  <p>The following is the content of shared/baseUrls.js</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>export const baseUrl = 'http://localhost:3001/';</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is my package.json:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "main": "node_modules/expo/AppEntry.js",
    "scripts": {
      "start": "expo start",
      "android": "expo start --android",
      "ios": "expo start --ios",
      "eject": "expo eject"
    },
    "dependencies": {
      "expo": "^32.0.0",
      "react": "16.5.0",
      "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
      "react-native-elements": "^1.0.0-beta8",
      "react-navigation": "2.0.1",
      "react-redux": "5.0.7",
      "redux": "4.0.0",
      "redux-logger": "3.0.6",
      "redux-thunk": "2.2.0"
    },
    "devDependencies": {
      "babel-preset-expo": "^5.0.0"
    },
    "private": true
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am using those packages versions because they are the suggested on the course I am taking.</p>
  
  <p>To solve the issue, I have tried</p>
  
  <ul>
  <li>yarn cache clean</li>
  <li>expo r -c</li>
  <li>Clear data/cache of expo on my cellphone.</li>
  </ul>