I am getting an error when trying to import a local file, though no problem when using npm packages.
import express from \'express\'
import n
I'm answering my own question if anybody else has this problem.
It turns out in experimental mode you need to define the full path with extension. So I am trying to import index.js thinking it will know.
To fix it:
import express from 'express'
import next from 'next'
import api from './src/server/api/index.js'