singpass / myinfo-connector-v4-nodejs

4 stars 3 forks source link

Receiving error Cannot find module 'node:querystring' #1

Open tristanyong opened 1 year ago

tristanyong commented 1 year ago

Good afternoon,

I am currently using the library with google firebase cloud functions. However after installing using "npm install myinfo-connector-v4-nodejs"

I receive the following error when i try to test the function:

Stacktrace: Error: Cannot find module 'node:querystring' Require stack:

I have went into the module folder and removed the "node:" portion within the request handler to allow the emulation to work. However when i deploy to the cloud this issue reappears again. Is there any other way which I may look at to avoid this issue?

Thank you

ByronKweh commented 6 months ago

Could I have more details on your environment such as node version, etc. so that I may try reproduce the issue?