Mrcool 🇵🇸
Mrcool 🇵🇸
DDeno
Created by Neubeki on 4/23/2025 in #help
Cannot read `include`d folder in compiled file
It's somewhere under import .meta.dirname
2 replies
DDeno
Created by iRealVrdons on 4/12/2025 in #help
wich version i need to use of deno webview2 modules?
Another option is to use webui, it have https://jsr.io/@webui/deno-webui/doc/~/WebUI.prototype.setKiosk to set fullscreen
6 replies
DDeno
Created by iRealVrdons on 4/12/2025 in #help
wich version i need to use of deno webview2 modules?
This is an example for linux https://jsr.io/@sigmasd/adw-app/0.1.3/lib.ts (its used like this app.run((window) => { const webview = new Webview(false, undefined, window);) windows can be done similarly if you're familiar with its win32 api, you'll need to use CreateWindowEx and pass the window to webview, but i'm not familiar with windows so I can't comment more on that
6 replies
DDeno
Created by iRealVrdons on 4/12/2025 in #help
wich version i need to use of deno webview2 modules?
Are you targeting a specific os ? if you are you can use option 1 then you can use native apis for example in linux get the gtk window pointer from the webview, dlopen gtk and use normal gtk apis on it like set full screen and set decorated
6 replies
DDeno
Created by spac3crawler on 3/9/2025 in #help
Issues installing npm packages
it seems like the error is coming from ts server instead of deno lsp, maybe you didn't deactivate it correctly
7 replies
DDeno
Created by werthan on 2/27/2025 in #help
Deno Compile Can't Find Node Module
ah yes, this does work
import ld from "npm:lodash@^4.17.21";
console.log(ld.eq);
import ld from "npm:lodash@^4.17.21";
console.log(ld.eq);
7 replies
DDeno
Created by werthan on 2/27/2025 in #help
Deno Compile Can't Find Node Module
1st issue, the compiled executale can't find a file you can try to include it deno compile --include node_modules/@aws-sdk myfile.ts 2nd issue deno is correct lodash doens't export eq on that version you can check with
import * as ld from "npm:lodash@^4.17.21";
console.log(ld);
import * as ld from "npm:lodash@^4.17.21";
console.log(ld);
7 replies
DDeno
Created by werthan on 2/27/2025 in #help
Deno Compile Can't Find Node Module
Maybe try to use --include flag , I think if the file is a dynamic import that's not statically analyzable it can't include it automatically
7 replies
DDeno
Created by Thomas on 3/2/2025 in #help
Is dynamic import in global installed CLI broken?
I think deno install defaults to --no-config , you can try removing that from the installed script
3 replies
DDeno
Created by bobc on 2/24/2025 in #help
emit in Deno 2.0
2 replies
DDeno
Created by Skrillx on 2/23/2025 in #help
deno_blog is broken
you can use "vendor": true in deno.json for now and patch the dependencies while you or someone else fix upstream
12 replies
DDeno
Created by WaterKnight on 2/21/2025 in #help
How to import GoogleAIFileManager from @google/generative-ai/files
5 replies
DDeno
Created by WaterKnight on 2/21/2025 in #help
How to import GoogleAIFileManager from @google/generative-ai/files
This should work
import {
GoogleAIFileManager,
} from "npm:@google/generative-ai@0.21.0/server";
const files = new GoogleAIFileManager(GOOGLE_API_KEY);
import {
GoogleAIFileManager,
} from "npm:@google/generative-ai@0.21.0/server";
const files = new GoogleAIFileManager(GOOGLE_API_KEY);
5 replies
DDeno
Created by WaterKnight on 2/21/2025 in #help
How to import GoogleAIFileManager from @google/generative-ai/files
You don't need esm, its not recommended its hash changes from time to time it gets annoying
5 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
Also the url of the file ends being a local one , not a remote https url
12 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
console.log(await fetch(import.meta.resolve("./b.txt")).then((r) => r.text()));
console.log(await fetch(import.meta.resolve("./b.txt")).then((r) => r.text()));
12 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
I read the file like this
12 replies
DDeno
Created by vrugtehagel on 2/20/2025 in #help
Read file as text in JSR package (easy with NPM, not Deno)
It seems to work , u can test this package import * as jsr_test from "@sigmasd/jsr-test";
12 replies
DDeno
Created by Char on 12/15/2024 in #help
Linux Zip Compression From CLI
You can use https://jsr.io/@zip-js/zip-js which don't require zip cli, its pure js
6 replies
DDeno
Created by Gyong on 11/19/2024 in #help
How to install deno with auto yes?
curl -fsSL https://deno.land/install.sh | sh -s -- -y (chatgpt)
6 replies