Next.js Discord

Discord Forum

deployment to vercel not working because typescript absolute paths

Unanswered
Pacific herring posted this in #help-forum
Open in Discord
Avatar
Pacific herringOP
hello guys
i am really struggling with deployment to vercel
i am deploying expressjs app but i am using typescipt with absoulte paths therefore i am getting module not found error... so it tried compiling to js with relative paths and i worked but it seems that vercel is not using the compiled js code rather the ts code
keep in mind that my folder structure is like this repo but with typescript and absolute paths (same structure and same vercel.json) https://github.com/lleryo/expressjs-vercel-starter

0 Replies