Óscar
Óscar
DDeno
Created by Óscar on 8/7/2024 in #help
Detect when the event loop is finished in a Worker
Yep, that's what I was afraid of. Thanks anyway!
4 replies
DDeno
Created by babakfp on 5/8/2024 in #help
How to prevent `deno add` from adding `^` to package version?
You might be interested in https://github.com/oscarotero/nudd (I'm the maintainer). It supports packages from deno.land, jsdelivr, jsr and npm. And it doesn't add ^ to package version. - nudd add react (install react from npm) - nudd add @std/path (install std/path from jsr) - You can update them with nudd update.
3 replies
DDeno
Created by rnbguy on 8/22/2023 in #help
puppeteer makes script to hang for a while at the end
I have the same issue with puppeteer. In fact I filed an issue here: https://github.com/denoland/deno/issues/20179
28 replies
DDeno
Created by wauterboi on 8/14/2023 in #help
Deno for SASS dependencies?
These two dependencies are not updated very often, so I'd download them manually to my project, it's the simplest solution. Alternatively, you can use remoteFiles (https://lume.land/docs/core/remote-files/) to use these files without downloading. For example:
site.remoteFile("includes/scss/_breakpoint.scss", "https://unpkg.com/breakpoint-sass@3.0.0/stylesheets/_breakpoint.scss");
site.remoteFile("includes/scss/_breakpoint.scss", "https://unpkg.com/breakpoint-sass@3.0.0/stylesheets/_breakpoint.scss");
3 replies
DDeno
Created by seraf on 8/3/2023 in #help
tsParticles & Deno
I don't think so. They are designed to track changes after user interaction or data loading.
12 replies
DDeno
Created by seraf on 8/3/2023 in #help
tsParticles & Deno
but you're using hooks and they don't work on server side
12 replies
DDeno
Created by seraf on 8/3/2023 in #help
tsParticles & Deno
This seems to work:
return (
<Particles.default
id="tsparticles"
// init={particlesInit}
// loaded={particlesLoaded}
options={options}
/>
);
return (
<Particles.default
id="tsparticles"
// init={particlesInit}
// loaded={particlesLoaded}
options={options}
/>
);
12 replies
DDeno
Created by seraf on 8/3/2023 in #help
tsParticles & Deno
Can you import everything and inspect what do you got? For example
import * as particles from "..."

console.log(particles)
import * as particles from "..."

console.log(particles)
12 replies
DDeno
Created by seraf on 8/3/2023 in #help
tsParticles & Deno
Looks like Particles variable is not a function. Maybe it's an issue related to how it's exported (https://github.com/tsparticles/preact/blob/main/components/preact/index.js). Try to import it in a different way like import { Particles } from "..." or something like that.
12 replies
DDeno
Created by Óscar on 5/15/2023 in #help
What is the best way to count values with Deno.Kv?
Oh, I didn't see that. Thanks!
3 replies
DDeno
Created by abi on 3/28/2023 in #help
Simpler way to read a file relative to current module?
It resolves any URL and take into account the import_map.
11 replies
DDeno
Created by abi on 3/28/2023 in #help
Simpler way to read a file relative to current module?
even simpler: import.meta.resolve(filename)
11 replies
DDeno
Created by Óscar on 9/29/2022 in #help
Dynamic npm imports don't work
4 replies