Pixel
Pixel
DDeno
Created by Pixel on 10/24/2023 in #help
Where is my Twitter access token with Deno KV Oauth?
I signed in successfully and now the Deno KV database is just storing true. It's not enough to interact with the Twitter account?
6 replies
DDeno
Created by Pixel on 10/24/2023 in #help
How to get custom folder structure with Fresh?
Hello, I want to integrate Fresh into my existing project. I want to use the 4 directories: components, routes, islands and static but I want them inside a directory in the project like ./src/fresh/
3 replies
DDeno
Created by Pixel on 8/15/2023 in #help
Pixi.js breaks Deno
I'm trying to import Pixi in a Fresh island:
import { Sprite, Stage } from "npm:@pixi/react@7.1.0";

export function Game() {
return (
<Stage>
<Sprite
image="https://pixijs.io/pixi-react/img/bunny.png"
x={400}
y={270}
anchor={{ x: 0.5, y: 0.5 }}
/>
</Stage>
);
}
import { Sprite, Stage } from "npm:@pixi/react@7.1.0";

export function Game() {
return (
<Stage>
<Sprite
image="https://pixijs.io/pixi-react/img/bunny.png"
x={400}
y={270}
anchor={{ x: 0.5, y: 0.5 }}
/>
</Stage>
);
}
This results in an error:
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'process')
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'process')
4 replies
DDeno
Created by Pixel on 12/19/2022 in #help
Disable Deno VSCode TS types
14 replies
DDeno
Created by Pixel on 10/9/2022 in #help
error Unsupported scheme node for module `nodemodule`. Supported schemes
I'm trying to import a module using:
import { example } from "npm:example";
import { example } from "npm:example";
Inside example, there's this line:
import something from "module";
import something from "module";
I get this error on that very line:
error: Unsupported scheme "node" for module "node:module". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
error: Unsupported scheme "node" for module "node:module". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
31 replies
DDeno
Created by Pixel on 10/8/2022 in #help
esbuild_deno_loader importing Deno modules
A dependancy I use imports modules like "fs" and I want esbuild_deno_loader to treat them as external but currently get this error:
✘ [ERROR] [plugin deno] specifier was a bare specifier, but was not remapped to anything by importMap. deno:https://cdn.jsdelivr.net/npm/assemblyscript@0.20.3/dist/asc.js:7:6107: 7 │ ...t process]",X,un,A,G,gn;gt?(X=await import("fs"),un=await import("module"),A=await import... ╵ ~~~~
Has anyone seen this before?
4 replies
DDeno
Created by Pixel on 10/1/2022 in #help
Command doesn't work in deno task but works outside of deno task
The command in question:
(find . -name '*.js'; find . -name '*.as') | grep -v bundle | xargs wc -l | sort
(find . -name '*.js'; find . -name '*.as') | grep -v bundle | xargs wc -l | sort
Run it in Terminal.app, it works. Run it in Deno, it freezes! This changes when I remove the () to join two commands together.
6 replies
DDeno
Created by Pixel on 9/25/2022 in #help
How exactly do import maps work?
My import map works but I don't understand how!
"/": "./src/",
"./": "./",
"/": "./src/",
"./": "./",
If I import /a/b/c.js it imports from ./src/a/b/c.js. I like this. However, I have no idea about how this works! Could someone explain please? I like to understand what my code does and it bugs me if I don't :p
4 replies
DDeno
Created by Pixel on 9/24/2022 in #help
Write to virtual file path
Is it possible to provide virtual file paths so that another package writes a file to a variable in memory or to stdout? I'm using esbuild.build({ ... }) and I want to take the output of that and give it straight to deno, as in deno run esbuild.js | deno run -. I could solve the problem by writing to a temp file and running that.
8 replies