Can't import path in api using /app/api/[[...route]]/route.ts
Unanswered
Fire ant posted this in #help-forum
Fire antOP
Using
API route
Got
On normal app route its working, like using in
Next.js (15.0.0-rc.0)
import path from "path";API route
/app/api/[[...route]]/route.ts Got
Module not found: Can't resolve 'path'On normal app route its working, like using in
page.tsxNext.js (15.0.0-rc.0)
1 Reply
Fire antOP
beep