adoublef
adoublef
DDeno
Created by adoublef on 2/26/2024 in #help
workspace import
from this issue it seems you need to define one of the configs but can I yet, define many configs?
4 replies
DDeno
Created by adoublef on 10/17/2023 in #help
Distroless Docker image fails with `libc.so: cannot open shared object file: No such file`
Libsql is an npm module correct. I will try the Debian package but would prefer the build on top of a distroless image. I will also check with the libsql maintainers as the node application seemed to build just fine, it's just the deno one with the complications
4 replies
DDeno
Created by Mqx on 9/12/2023 in #help
Using Deno in Frontend.
ah yh that is what another user kinda shared with me too, i must've misunderstood the readme on the esbuild_deno_loader
20 replies
DDeno
Created by Mqx on 9/12/2023 in #help
Using Deno in Frontend.
if I want to run in deploy, is the deno_emit module the better alternative? as I can't seem to get the esbuild to work there
20 replies
DDeno
Created by adoublef on 9/8/2023 in #help
Deploy says Worker not defined for ESBuild (wasm.js)
@Deno AI Helper is there something wrong with my script as it is still returning the error
import * as esbuild from "https://deno.land/x/esbuild@v0.19.2/wasm.js";
import { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.1/mod.ts";
import { Hono } from "https://deno.land/x/hono@v3.6.0-rc.1/mod.ts";

// Learn more at https://deno.land/manual/examples/module_metadata#concepts
if (import.meta.main) {
try {
const result = await esbuild.build({
entryPoints: ["./hello_world.ts"],
platform: "browser",
target: ["chrome99", "firefox99", "safari15"],
format: "esm",
bundle: true,
minify: true,
absWorkingDir: Deno.cwd(),
outdir: ".",
write: false,
metafile: false,
// @ts-ignore been updated to v0.19.2
plugins: [...denoPlugins()],
});

console.log(result.outputFiles);

const app = new Hono();

app.get("/", c => c.text(`Add 2 + 3 = ${add(2, 3)}`));

await Deno.serve(app.fetch).finished;
} catch (error) {
console.error(error.message);
} finally {
esbuild.stop();
}
}
import * as esbuild from "https://deno.land/x/esbuild@v0.19.2/wasm.js";
import { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.1/mod.ts";
import { Hono } from "https://deno.land/x/hono@v3.6.0-rc.1/mod.ts";

// Learn more at https://deno.land/manual/examples/module_metadata#concepts
if (import.meta.main) {
try {
const result = await esbuild.build({
entryPoints: ["./hello_world.ts"],
platform: "browser",
target: ["chrome99", "firefox99", "safari15"],
format: "esm",
bundle: true,
minify: true,
absWorkingDir: Deno.cwd(),
outdir: ".",
write: false,
metafile: false,
// @ts-ignore been updated to v0.19.2
plugins: [...denoPlugins()],
});

console.log(result.outputFiles);

const app = new Hono();

app.get("/", c => c.text(`Add 2 + 3 = ${add(2, 3)}`));

await Deno.serve(app.fetch).finished;
} catch (error) {
console.error(error.message);
} finally {
esbuild.stop();
}
}
9 replies
DDeno
Created by adoublef on 9/8/2023 in #help
Deploy says Worker not defined for ESBuild (wasm.js)
@Deno AI Helper if i just want to build the bundle so that i can serve it as a response body, what config would you recomment
9 replies
DDeno
Created by adoublef on 9/8/2023 in #help
Deploy says Worker not defined for ESBuild (wasm.js)
@Deno AI Helper can you give an example of how to use the worker along with esbuild?
9 replies
DDeno
Created by adoublef on 9/4/2023 in #help
Does calling `bundle` inside a handler make sense?
so i guess I semi-resolved my issue
4 replies
DDeno
Created by adoublef on 9/4/2023 in #help
Does calling `bundle` inside a handler make sense?
@lucacasonato the one from deno_emit https://github.com/denoland/deno_emit/blob/main/js/README.md#bundle I did move it out the handler which allowed it to be ran once, but wasn't sure what the internal cache options are supposed to enable
4 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
ahhh nwnw, do you get those results when importing from mod.ts or from importing individual scripts (i.e media_types/extension.ts, media_types/content_type) @marvinh. thank you
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
I dunno, should I be allowed to just import the scripts i need without requiring to import mod.ts?
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
import {
contentType,
extension,
extensionsByType,
extensions,
parseMediaType,
} from "https://deno.land/std@0.198.0/media_types/mod.ts";
import {
contentType,
extension,
extensionsByType,
extensions,
parseMediaType,
} from "https://deno.land/std@0.198.0/media_types/mod.ts";
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
changing it to import from mod seems to have brought in the iife that populates the extenstion and types
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
this is how I was importing them but looks like this was causing the error
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
import { contentType } from "https://deno.land/std@0.198.0/media_types/content_type.ts";
import { extension } from "https://deno.land/std@0.198.0/media_types/extension.ts";
import { extensionsByType } from "https://deno.land/std@0.198.0/media_types/extensions_by_type.ts";
import { extensions } from "https://deno.land/std@0.198.0/media_types/_util.ts";
import { parseMediaType } from "https://deno.land/std@0.198.0/media_types/parse_media_type.ts";
import { contentType } from "https://deno.land/std@0.198.0/media_types/content_type.ts";
import { extension } from "https://deno.land/std@0.198.0/media_types/extension.ts";
import { extensionsByType } from "https://deno.land/std@0.198.0/media_types/extensions_by_type.ts";
import { extensions } from "https://deno.land/std@0.198.0/media_types/_util.ts";
import { parseMediaType } from "https://deno.land/std@0.198.0/media_types/parse_media_type.ts";
11 replies
DDeno
Created by adoublef on 8/10/2023 in #help
extension method returning undefined for `text/plain`
11 replies
DDeno
Created by adoublef on 7/31/2023 in #help
denodrivers/sqlite and deno-sqlit behave different with multiple `?` args
Solved, found there is a method called values that returns the results in array list form
3 replies
DDeno
Created by adoublef on 7/31/2023 in #help
denodrivers/sqlite and deno-sqlit behave different with multiple `?` args
From the above its clear that the ? is overidden and therefore only one of them get's returned. I am not sure if this is something that could be tackled or if it's even necessary as it isn't exactly a meanigful statement
3 replies