You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Heartland with my backend on NextJS but I'm getting this error:
I'm on Next 14.1, Node 21.6.2, NPM 10.2.4.
Import trace for requested module:
./src/app/api/heartland/credit/route.ts
⨯ ./node_modules/globalpayments-api/lib/src/index.js:19:4
Module not found: Can't resolve '../netsuite/set-timeout-polyfill'
https://nextjs.org/docs/messages/module-not-found
I know I'm able to run it on a regular Node/Express server because I spun one up quickly and it worked fine.
However, when I try to run it through an endpoint on NextJS, it doesn't work.
I'm trying to use Heartland with my backend on NextJS but I'm getting this error:
I'm on Next 14.1, Node 21.6.2, NPM 10.2.4.
I know I'm able to run it on a regular Node/Express server because I spun one up quickly and it worked fine.
However, when I try to run it through an endpoint on NextJS, it doesn't work.
Has anyone been able to make it work with NextJS?
I've already tried reaching out to developers@heartland.us but haven't heard back yet.
The text was updated successfully, but these errors were encountered: