bombillazo
Reset position of terminal cursor when calling io.writeAllSync()
Currently using io.writeAllSync, the next data is written where the last data left off, even with a new line the cursor is kept horizontally in the position that was left.
I tried the ansi library cursorBack function but it did not work, how can I control or reset the cursor?
2 replies
Is there any way to force a Deno dependency to use a specific version of std?
We're having an issue were a dependency we are importing from npm with the
npm:
identifier is trying to use a node lib that only exisits up to std v0.177.0, specifically the tty
lib. Our main std version is in 0.244.0 specified in our import_map.json file.
Is there any way to specify this 3rd party dep to use the std version it requires to work?2 replies
Deno.Command output as it runs
Hello, I am trying to run a command and have its output be logged as it runs , but for some reason the command runs but no output is displayed. I tried using both ouput with await and outputSync, setting stdout to piped and inherit but nothing.
6 replies
Syntax Error: Unexpected token 'export'
Hello, We are using Supabase Deno Edge Functions and are getting this error while trying to import a file into an edge function code:
Uncaught SyntaxError: Unexpected token 'export'
at file:///home/deno/modules/c675a10248170410cad4e4a996152aad5ad7f2a817728186567122b6394d9419:185:1
InvalidWorkerCreation: worker boot error
I checked the edge runtime file and the file code is as my source code, yet the edge function fails to run throwing this error. I'm not sure why this is happening though.
4 replies
Deno Deploy Questions
Hey there. We are using Supabase to run edge functions, which in turn built their feature on top of Deno Deploy. I'd like to know more about how Deno Deploy works.
Our main inquiry are on topics such as how fast can these functions scale, and how do they manage request load balancing and load, where are these edges, what caching (if any) mechanisms are used, do they become "cold" after some time, how "ephemeral" are these functions in case some troubleshooting or reboot is required, etc.
This comes since we've noticed some latency issues sometimes when we use our app and want to understand the root cause but searching on the guides we have no notion of how exactly are these edge functions being deployed and run and their surrounding environment. Any more in-depth info would help us greatly .
17 replies
How can one patch a Deno dependency?
Hello, We're used to working with node and using
patch-package
to override and fix packages fairly easily. However, we're now using Deno due to using Supabase edge functions and have not figure a way to get the same dev experience.
Is there any guide or way one can patch a dependency in Deno?9 replies