Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.
This repository was archived by the owner on May 10, 2023. It is now read-only.

Can you help fix this error? #1

@ebullienc3

Description

@ebullienc3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions