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
Using fetch function inside getStaticProps works fine running build but fails in dev server start.
yarn start
...
[microsite] ✔ Microsite started on http://localhost:8888
ReferenceError: fetch is not defined
at getStaticProps (/src/pages/blog.js:14:17)
Is there something simple i'm missing that is preventing the dev server from accessing fetch function?
I'm very new to snowpack so may have missed some thing that is assumed.
Using
fetch
function insidegetStaticProps
works fine runningbuild
but fails in dev serverstart
.Is there something simple i'm missing that is preventing the dev server from accessing fetch function?
I'm very new to snowpack so may have missed some thing that is assumed.
OS: macos mojave
Node version: v14.13.0
Potentially a similar issue to #132
Thanks!
The text was updated successfully, but these errors were encountered: