Closed metafraction closed 2 years ago
It seems require
is in node and not supported client side - although, there are options like require.js or browserify if we want to support it
This is a vite-specific issue—it's a modern build tool and doesn't use the older require
syntax. When packages use require
, we basically have to polyfill it with something like this: https://github.com/originjs/vite-plugins/tree/main/packages/vite-plugin-commonjs
See this issue fore more info: https://github.com/vitejs/vite/issues/3409 (not sure why it only happens with WC though)
Ah this seems more relevant to us: https://github.com/vitejs/vite/issues/4593
@mds1 ^ ah yeah that does seem more relevant - although, not sure how he resolved the issue
When connecting with walletconnect, it throws the following error