Node --experimental-modules - Error: Cannot find module : <p>I am getting an error when trying to import a local file, though no problem when using npm packages.</p>

<h1>server.js</h1>

<pre><code>import express from 'express'
import next from 'next'

import apis from './src/server/api'
</code></pre>

<h1>api.js</h1>

<pre><code>export default {
  ello: 'bye',
  jamie: 'hey'
}
</code></pre>

<h1>Starting app</h1>

<pre><code>node --experimental-modules --inspect server.js
</code></pre>

<h1>Error</h1>

<pre><code>For help, see: https://nodejs.org/en/docs/inspector
(node:20153) ExperimentalWarning: The ESM module loader is experimental.
internal/modules/esm/default_resolve.js:59
  let url = moduleWrapResolve(specifier, parentURL);
            ^

Error: Cannot find module '/var/www/goldendemon.hutber.com/src/server/api' imported from /var/www/goldendemon.hutber.com/server.js
    at Loader.resolve [as _resolve] (internal/modules/esm/default_resolve.js:59:13)
    at Loader.resolve (internal/modules/esm/loader.js:70:33)
    at Loader.getModuleJob (internal/modules/esm/loader.js:143:40)
    at ModuleWrap.&lt;anonymous&gt; (internal/modules/esm/module_job.js:43:40)
    at link (internal/modules/esm/module_job.js:42:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
</code></pre>
