-
Notifications
You must be signed in to change notification settings - Fork 519
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]: Building with rollup error on "require$$0$5" undefined #1204
Comments
Hey @Rizary it looks like you will need the node builtins for the wallets that you are using. Could you try installing import nodePolyfills from 'rollup-plugin-polyfill-node'
export default {
// ... other options
plugins: [
// ... other plugins
nodePolyfills({ crypto: true, http: true })
}; |
@aaronbarnardsound I already did that in the repo here: https://github.com/Rizary/wasm-rust-onboard-web3/blob/master/rollup.dev.js#L48 and after change it the way you write, the error still persist. |
Ok no worries, I will try and build a basic rollup example to replicate and get back to you. What wallet modules are you using with Onboard? |
I have a working Rollup example here with a few wallets if you would like to check it out and use as a reference. |
@aaronbarnardsound I only targeting metamask for now. I'll look into it. |
@aaronbarnardsound I've tried it with my project using your example and it works fine. Thank you for helping me. |
Current Behavior
Rollup able build and run the project but in the runtime, I get blank page. When look into browser console, it says:
Expected Behavior
the page loads fine and
Onbroad
is initialized.Steps To Reproduce
What package is effected by this issue?
@web3-onboard/core
Is this a build or a runtime issue?
Runtime
Package Version
"^2.6.0"
Node Version
v18.7.0
What browsers are you seeing the problem on?
No response
Relevant log output
Anything else?
In the devtools, it shows:
Sanity Check
The text was updated successfully, but these errors were encountered: