You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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:
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 runningnpm 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]
The text was updated successfully, but these errors were encountered: