How to use import with absolute paths with Expo and React Native? : <p>I'm trying to use absolute import paths instead of relative paths with <a href="https://github.com/expo/expo-sdk" rel="noreferrer">Expo</a> and React Native.</p>

<p>I looked on the expo docs and couldn't find an answer... Searching for the subject in react community I found <a href="https://github.com/tleunen/babel-plugin-module-resolver.git" rel="noreferrer">babel-plugin-module-resolver</a> but it seems that Expo is already using it so I've changed my .babelrc to create some aliases:</p>

<pre><code>{
  "presets": ["babel-preset-expo"],
  "env": {
    "development": {
      "plugins": [
        "transform-react-jsx-source",
        ["module-resolver", {
          "root": ["./app"],
          "alias": {
            "Components": "./app/components",
          }
        }]
      ]
    }
  }
}
</code></pre>

<p>But I got the following error:</p>

<pre><code>Unable to resolve module '@expo/vector-icons/glyphmaps/Entypo.json' 
from '/Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/Entypo.js': 
Module does not exist in the module map or in these directories:   /Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/node_modules/@expo/vector-icons/glyphmaps ,   /Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/glyphmaps  This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:   
1. Clear watchman watches: 'watchman watch-del-all'.   
2. Delete the 'node_modules' folder: 'rm -rf node_modules &amp;&amp; npm install'.   
3. Reset packager cache: 'rm -fr $TMPDIR/react-*' or 'npm start --reset-cache'.
ABI16_0_0RCTFatal -[ABI16_0_0RCTBatchedBridge stopLoadingWithError:] __34-[ABI16_0_0RCTBatchedBridge start]_block_invoke_2 _dispatch_call_block_and_release _dispatch_client_callout _dispatch_main_queue_callback_4CF __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ __CFRunLoopRun CFRunLoopRunSpecific GSEventRunModal UIApplicationMain main start 0x0 
</code></pre>

<p>Is there any easy way to import absolute paths?</p>
