-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Support Astro #16659
Comments
Now it gets by that error and I get the following:
|
Added it to the issue list. ( |
The 2nd issue disappeared. Added the 4th and 5th issues. |
So I played around with it and it seems to be some kind of bug with ReadableStream. If i turn off streaming it works fine. |
So I think the issue is it sending a 0 length UIntArray which is screwing up ReadableStream |
@brenelz I looked into your fix in details, and it looked like 0 length Uint8Array is ok for ReadableStream, but it causes an issue in our server implementation (Deno.serve) #17194. I created an workaround in deno_std denoland/std#3062. Thanks for your research! |
@kt3k should I close my pr then? Hopefully it at least helped put you on the right track. I would test it but not sure how to use in progress deno_std |
You can replace
You can also replace it with one in a remote branch, like:
|
Works great from what I can tell. Thanks! |
Now (The below steps work with 1.31.0)
|
@bartlomieju I built and ran deno from your branch, and I can cofirm those issues are gone, but there are others blocking astro support still. In particular, detecting package.json breaks module graph resolution. |
Thanks for the report. I will take a deeper look at Astro in the coming days. |
Thanks to @bartlomieju, astro is really close to working on deno again. The one blocker is undici, which isn't even necessary on deno, and planned for removal with node 16 EOL. |
@lilnasy thanks for keeping tabs. We did not manage to complete |
With #19223 landed Astro should now work in Deno. I'm gonna close this issue, please open new issues if you hit any more problems. |
Tracking issue for supporting astro.
Known issues:
TypeError: Cannot set property localStorage of #<Window> which has only a getter
when runningdeno run npm:astro dev
This error (strangely) disappeared on the latest version.ReferenceError: process is not defined at validateComponentProps (/node_modules/.deno/[email protected]/node_modules/astro/dist/runtime/server/render/astro.js, <anonymous>:13:61)
URL
(issue for[email protected]
, but not for latest)astro dev
hangs without any error message flash:Deno.serve
drops response body chunks if empty chunk is enqueued #17194 fix(node/http): avoid empty chunk issue of flash std#3062astro build
requires the import map of{"html-escaper": "npm:html-escaper"}
to work correctly.The text was updated successfully, but these errors were encountered: