NuxtN
Nuxt6mo ago
5 replies
kingtimm

Import Error in Server Folder

Hi - I have a nuxt3 project that I'm migrating. I have an import in the server folder that seems to want use the appDir as root when resolving a path.

[nitro 9:30:10 PM]  ERROR  Error: Could not load /home/king/dev/project/app//server/lib/Transcode'


My import is
import useTranscoder from '~~/server/lib/Transcode'
in the for the file
server/api/transcode.get.ts


Any ideas on how to hunt down where
app/
is getting aded to the resolution path?

I used the codemod to migrate and create the app folder. I do not have any srcDir declarations in my nuxt config.
Was this page helpful?