Module not found: Can't resolve 'http'
Unanswered
SpicyJungle posted this in #help-forum
Hi, I get this error:
However, it is being used in an API route, not on the browser.
next.js 14, using the app router
./node_modules/oauth/lib/oauth.js:3:10
Module not found: Can't resolve 'http'
https://nextjs.org/docs/messages/module-not-foundHowever, it is being used in an API route, not on the browser.
next.js 14, using the app router
7 Replies
if its edge it wont work
oh really
@DirtyCajunRice | AppDir if its edge it wont work
what do i do to fix it? It does run locally
@SpicyJungle what do i do to fix it? It does run locally
dont export to standalone?
What do you mean by that?
where are you deploying next to
Vercel, but in this case i meant that it works on npm run dev but fails on npm run build