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
When deploying to Deno Deploy or running locally with Deno, I receive this error:
Server running on port 8085
01:43:51 pm [ssr] ReferenceError: Buffer is not defined
at renderPage (file:///Users/pgwsmith/Royal%20Icing/regenerated-astro/dist/server/entry.mjs:5767:28)
at async render (file:///Users/pgwsmith/Royal%20Icing/regenerated-astro/dist/server/entry.mjs:6560:10)
at async App.renderPage_fn (file:///Users/pgwsmith/Royal%20Icing/regenerated-astro/dist/server/entry.mjs:7499:22)
at async App.render (file:///Users/pgwsmith/Royal%20Icing/regenerated-astro/dist/server/entry.mjs:7451:22)
at async Server.handler (file:///Users/pgwsmith/Royal%20Icing/regenerated-astro/dist/server/entry.mjs:7580:14)
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:298:18)
I've encountered the same error when targeting any edge runtime (discussion on the Discord). Looking at the docs of cloudflare workers and deno deploy, none of them provides an API for Buffer which makes sense since it's a node-specific API.
I initially found this error while testing on my edge runtime (https://github.com/lagonapp/lagon), so maybe we should rename the issue and PR to be about "any edge runtime" instead of specifically deno?
natemoo-re
changed the title
Deno error — Buffer is not defined
Edge runtime error: Buffer is not defined
Aug 15, 2022
What version of
astro
are you using?1.0.5
Are you using an SSR adapter? If so, which one?
Deno
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
When deploying to Deno Deploy or running locally with Deno, I receive this error:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-tdn4cu?file=package.json
Participation
The text was updated successfully, but these errors were encountered: