Is it possible to run hardhat in the browser? #3127
-
I tried naively running it through browserify, but I keep getting various errors. I was wondering if someone else might have already gone through the process, or if there are some known reasons why it can't feasibly work. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hey, @orenyomtov! Hardhat depends on tons of apis from Node.js and its dependency model, so it's not really browser-compatible. Are you looking to run Hardhat or Hardhat Network in the browser? |
Beta Was this translation helpful? Give feedback.
-
@alcuadrado thanks for the quick response! Mainly Hardhat Network - does that make things easier? |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarifying. We have plans for that, but I don't think we'd be able to prioritize them this year. |
Beta Was this translation helpful? Give feedback.
-
Do you have a general plan of attack for supporting Hardhat Network to run in the browser? |
Beta Was this translation helpful? Give feedback.
-
We are porting it to rust and will provide wasm builds. |
Beta Was this translation helpful? Give feedback.
-
Oh god wow Well good luck with that 😅 |
Beta Was this translation helpful? Give feedback.
We are porting it to rust and will provide wasm builds.