-
Notifications
You must be signed in to change notification settings - Fork 6
Can you help fix this error? #1
Description
D:\Bots\stable-diffusion\node_modules>pnpm start
turing-bot@0.0.4 start D:\Bots\stable-diffusion
tsc && node .
src/commands/premium.ts:50:1 - error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/@discordjs+builders@1.6.1/node_modules/@discordjs/builders'. This is likely not portable. A type annotation is necessary.
50 export default {
~~~~~~~~~~~~~~~~
51 data,
~~~~~~~
...
100 },
~~~~
101 };
~~
src/commands/stable-diffusion.ts:427:1 - error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/@discordjs+builders@1.6.1/node_modules/@discordjs/builders'. This is likely not portable. A type annotation is necessary.
427 export default {
~~~~~~~~~~~~~~~~
428 cooldown: "2m",
~~~~~~~~~~~~~~~~~
...
700 },
~~~~
701 };
~~
src/commands/transcript.ts:124:1 - error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/@discordjs+builders@1.6.1/node_modules/@discordjs/builders'. This is likely not portable. A type annotation is necessary.
124 export default {
~~~~~~~~~~~~~~~~
125 cooldown: "1m",
~~~~~~~~~~~~~~~~~
...
170 },
~~~~
171 };
~~
src/modules/stablehorde.ts:152:23 - error TS2742: The inferred type of 'generateUpscaleRow' cannot be named without a reference to '.pnpm/@discordjs+builders@1.6.1/node_modules/@discordjs/builders'. This is likely not portable. A type annotation is necessary.
152 export async function generateUpscaleRow(generationId, images) {
~~~~~~~~~~~~~~~~~~
src/modules/stablehorde.ts:163:23 - error TS2742: The inferred type of 'generateRateRow' cannot be named without a reference to '.pnpm/@discordjs+builders@1.6.1/node_modules/@discordjs/builders'. This is likely not portable. A type annotation is necessary.
163 export async function generateRateRow(generationId, userId, imageId) {
~~~~~~~~~~~~~~~
Found 5 errors in 4 files.
Errors Files
1 src/commands/premium.ts:50
1 src/commands/stable-diffusion.ts:427
1 src/commands/transcript.ts:124
2 src/modules/stablehorde.ts:152
ELIFECYCLE Command failed with exit code 1.