title: NextJS - ky-universal error - Cannot use import statement outside a module
body: <p>I am trying to use <a href="https://github.com/sindresorhus/ky-universal" rel="nofollow noreferrer">ky-universal</a> in a NextJS project however just using the library gives this error:</p>
  <pre><code>import fetch, {Headers, Request, Response} from 'node-fetch';
  ^^^^^^
  
  SyntaxError: Cannot use import statement outside a module
  </code></pre>
  <p>I am just making a test request in a <code>useEffect</code> hook:</p>
  <pre><code>useEffect(() =&gt; {
    const response = ky.get('https://test.com');
    console.log(response);
  });
  </code></pre>
  <p>I'm going around in circle and can't get this to work. Any suggestions? Thank you!</p>