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

[BUG] ReferenceError: process is not defined occur with Remix #137

Open
1 task done
yu23ki14 opened this issue Nov 29, 2024 · 0 comments
Open
1 task done

[BUG] ReferenceError: process is not defined occur with Remix #137

yu23ki14 opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@yu23ki14
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.0.8

Current Behavior

I get the following error when I use the SDK in a frontend project using Remix.This is due to the fact that Remix does not accept process variables.

ReferenceError: process is not defined at http://localhost:5173/node_modules/.vite/deps/@biconomy_sdk.js?v=350b1863:8544:22

It is comming from here

https://github.com/bcnmy/sdk/blob/ebe66df681e14f88c0f0ff864add79f600f12d55/src/sdk/account/utils/Utils.ts#L360C1-L374C2

Expected Behavior

Ensure that the imported SDK can be used without problems.

Putting typeof process !== undefined before using process may fix this bug

Steps To Reproduce

No response

Package.json (or lockfile) content

No response

Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)

No response

Anything else?

No response

@yu23ki14 yu23ki14 added bug Something isn't working help wanted Extra attention is needed labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant