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] Uncaught Error: Dynamic require of "os" is not supported #3973

Open
krehak opened this issue Mar 7, 2025 · 1 comment
Open

[bug] Uncaught Error: Dynamic require of "os" is not supported #3973

krehak opened this issue Mar 7, 2025 · 1 comment
Labels
bug Something isn't working needs review

Comments

@krehak
Copy link

krehak commented Mar 7, 2025

Link to minimal reproducible example

https://github.com/reown-com/web-examples/tree/main/dapps/appkit-siwe/react

Summary

I was working on my website using appkit with SIWE, everything worked well... until I wanted to build my website (I use vite.js)... first I thought I did something wrong, I tried to edit my config to build the website, but always the same error:

Uncaught Error: Dynamic require of "os" is not supported

so I tried one of your examples, to be exact: https://github.com/reown-com/web-examples/tree/main/dapps/appkit-siwe/react

when I started localhost (npm run dev) it worked well, but running npm run build, then entering the folder and trying to visit website (using https://www.npmjs.com/package/http-server) and same error as my website.

so I started to investigate and the problem is that package pino is Node.js logger and won't work in the browser, pino which is required by package @walletconnect/logger

List of related npm package versions

@reown/[email protected]
@reown/[email protected]
@reown/[email protected]

Node.js Version

v22.0.0

Package Manager

[email protected]

@krehak krehak added bug Something isn't working needs review labels Mar 7, 2025
Copy link

linear bot commented Mar 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant