Robbie
Issues with importing from npm - should I switch to esm.sh?
Is importing from esm.sh recommended over npm? Recently I've been having a lot of issues with imports from npm inside Jupyter. For example:
results in an error:
and
results in a different error:
If I switch to:
The errors go away.
2 replies
Import errors when importing into Jupyter
I'm seeing some weird behaviour when I try to import a module into Jupyter. A simple reproduction is:
If I run that code in Jupyter it works fine but when I move it to a file
foo.ts
and import that module in Jupyter...
I get an error:
What's strange is if I change the order of the two import lines it works... but then the error will come back if I add a 3rd import from a different @aws-sdk
package.
Does anyone have any idea what's going on and whether there is any workaround?1 replies
Replacing `fs.createWriteStream()` with Deno equivalent
Hi, I am trying to download files from S3 to disk and it works if I use
fs.createWriteStream()
as follows:
How would I achieve the same thing with Deno's standard library instead of node:fs
? I have tried the following:
But I get an error:
Any ideas?9 replies