globalpayments / node-sdk

GNU General Public License v2.0
23 stars 27 forks source link

Can't resolve '/netsuite/set-timeout-polyfill' #68

Open loreleim opened 1 year ago

loreleim commented 1 year ago

Anyone have this issue in 2023?

Can't resolve '../netsuite/set-timeout-polyfill' in '..../globalpayments-api/lib/src'

React Build node v18 react-scripts 5.0.1 **tried the 4.0.3 fix, but have other npm dependencies in current project that require 5.0.1

Also ran into a multitude of other console errors that were fixed by adding the following to webpack.config.js

      fallback: {
        "stream": require.resolve("stream-browserify"),
        "https": require.resolve("https-browserify"),
        "http": require.resolve("stream-http"),
        "fs": false,
      },
jacobkellas commented 1 year ago

Any updates on this issue? I am also getting the same error.

loreleim commented 1 year ago

@jacobkellas nope still no resolve. I recently just got through with their support for developerID and service URL codes. Took 3 days, but I got a response! their email is developers@heartland.us. I'm going to send an email there as well. Maybe we can bump the issue if more people send in support requests?

loreleim commented 1 year ago

Email sent to their team, will update the thread if any response / new info comes through 👍

jacobkellas commented 1 year ago

@loreleim So I think I've found the issue. This library is for the server-side. I don't believe there is a node package for the front-end, I've ended up importing the js file through a script tag for a vue application.

I'm using this library (really the dotnet one) for our back end. I tokenize the credit card information on the front end with the js file, then send the token to my api and charge the card with this library.