Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is This Library Compatible With NextJS? #74

Open
devwilliamy opened this issue Jul 26, 2024 · 1 comment
Open

Is This Library Compatible With NextJS? #74

devwilliamy opened this issue Jul 26, 2024 · 1 comment

Comments

@devwilliamy
Copy link

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.

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.

@devwilliamy
Copy link
Author

Update: Have to use it in pages router, seems to work fine on 3.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant