title: Using `dynamic import` to fetch script from another host?
body: <p>I run my next.js app on <code>localhost:3001</code>. I want to fetch script from another host (<code>localhost:3000</code>). I could do it <a href="https://stackoverflow.com/questions/44803944/can-i-run-a-js-script-from-another-using-fetch">like this</a>. As for me, much prettier would be using <code>dynamic import</code>. But I got an error: 'ModuleNotFoundError: Module not found: Error: Can't resolve '<a href="http://localhost:3000/static/fileToFetch.js" rel="nofollow noreferrer">http://localhost:3000/static/fileToFetch.js</a>' in '/Users/{username}/Desktop/test-project/pages';</p>
  
  <p>Example:</p>
  
  <pre><code>export const FetchedComponent = dynamic({
    loader: () =&gt;
      import('http://localhost:3000/static/fileToFetch.js'),
    loading: () =&gt; 'Loading...',
    ssr: false,
  });
  </code></pre>
  
  <p>Is it possible to do it?</p>