Fetch is not defined #147
Answered
by
tmm
richardryangarcia
asked this question in
Question
Fetch is not defined
#147
-
When following the basic example to get a block number, i get the error Fetch is not defined. Is there a min node version or some other node related detail that I might be missing? Thanks yall! The repo Im using is here https://github.com/richardryangarcia/bookish-octo-palm-tree |
Beta Was this translation helpful? Give feedback.
Answered by
tmm
Mar 7, 2023
Replies: 1 comment 2 replies
-
Thanks for checking out viem! If you are using less than Node 18, you need to polyfill |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jxom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for checking out viem!
If you are using less than Node 18, you need to polyfill
fetch
. Easy to do and more info here: https://viem.sh/docs/compatibility.html