RogueMan
RogueMan
DDeno
Created by Anthony on 12/8/2024 in #help
Cannot find module 'drizzle-kit'
You need to run deno run -A --node-modules-dir npm:drizzle-kit generate. Drizzle-kit needs the node_modules folder to work correctly
2 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
Opened an issue
11 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
it's a custom type 😄
11 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
@bartlomieju Sorry for pinging you, but you really helped me last time. I was wondering if you had any idea how I can fix this. Been stuck on this for a few days and can't seem to find anything online.
11 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
yes, the import mapping doesnt seem to be the issue. Everything runs just fine when using deno run. It only seems to happen when running a compiled binary
11 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
Yes it is
11 replies
DDeno
Created by RogueMan on 12/2/2024 in #help
Executable having trouble with types
Is this a known issue with type imports during compilation? Are there any recommended workarounds for type imports in compiled Deno executables? Any insights or help would be greatly appreciated! 🙏
11 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
Thank you (again 😉)
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
I finished my compile script yesterday :cookie_deno:
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
This looks very promising! Will definitely check it out.
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
it works! thank you for your help 😄
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
The issue is closed as wont fix as it is basically impossible to implement which is fair. but then I might need some help with the include flag. I have used it like this --include "./src/modules/core/baseEvents.ts" is this the correct way to do this? And how will this work code wise? I'm just trying to get all the information needed to make it work 😅
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
I have tried specifying each file separately but it still doesn't work. I have opened an issue. If it needs more clarification please let me know
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
hm, I've tried the following --include ./src/modules/**/*.ts but it still isn't included. Any other suggestions?
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
Wow I completely forgot to include the --include flag. That should do it, will test it when I'm back on my pc. Thank you!
20 replies
DDeno
Created by RogueMan on 11/12/2024 in #help
Dynamic import at compile time
import { existsSync, expandGlob } from '@std/fs';

/**
* Dynamically import all files matching the glob pattern
* @param globPath The glob pattern to match files
*/
export async function importer(globPath: string) {
for await (const file of expandGlob(globPath)) {
if (file.isFile) {
await import(`file://${file.path}`);
}
}
}
import { existsSync, expandGlob } from '@std/fs';

/**
* Dynamically import all files matching the glob pattern
* @param globPath The glob pattern to match files
*/
export async function importer(globPath: string) {
for await (const file of expandGlob(globPath)) {
if (file.isFile) {
await import(`file://${file.path}`);
}
}
}
This is the code I am using to import the files. The importer function gets called in the entrypoint the project
20 replies