Saitama
Saitama
Explore posts from servers
SIASapphire - Imagine a framework
Created by Saitama on 12/27/2023 in #sapphire-support
LoaderStrategy: promises.opendir is being broken if using with @vercel/pkg library
Hey There! I'm trying to build the bot into signle executable but there is an issue When trying to load the listeners, commands etc It fails because of
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, opendir 'C:\snapshot\VaultCord.bot\dist\src\commands'] {
errno: -4058,
code: 'ENOENT',
syscall: 'opendir',
path: 'C:\\snapshot\\VaultCord.bot\\dist\\src\\commands'
}

Node.js v18.5.0
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, opendir 'C:\snapshot\VaultCord.bot\dist\src\commands'] {
errno: -4058,
code: 'ENOENT',
syscall: 'opendir',
path: 'C:\\snapshot\\VaultCord.bot\\dist\\src\\commands'
}

Node.js v18.5.0
From what I see PKG has this issue for a long time https://github.com/vercel/pkg/issues/1505 and it's not fixed https://github.com/sapphiredev/pieces/blob/main/src/lib/strategies/LoaderStrategy.ts#L128 Cause of problem is this line const dir = await opendir(path); promises.readdir work fine What should I do in this situation?
8 replies
SIASapphire - Imagine a framework
Created by Saitama on 12/14/2023 in #sapphire-support
PaginatedMessage: There are no actions
No description
14 replies
SIASapphire - Imagine a framework
Created by Saitama on 12/14/2023 in #sapphire-support
PaginatedMessage: How to disable footer?
No description
20 replies