R
Railway•13mo ago
yibuh

Discord bot deployment failing

My bot deployment is failing, but I don't really understand why. It was working today and I only made some small modifications:






#11 [stage-0 7/10] COPY . /app/.

#11 DONE 0.1s



#12 [stage-0 8/10] RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build



#12 1.376 npm

WARN config production Use `--omit=dev` instead.

#12 1.497

#12 1.497 > [email protected] build

#12 1.497 > tsc

#12 1.497



#12 17.52 src/interaction-handlers/modals/embed-edit/embed-edit.ts:14:15 - error TS2345: Argument of type 'PieceContext<keyof StoreRegistryEntries>' is not assignable to parameter of type 'LoaderContext'.

#12 17.52 Types of property 'store' are incompatible.

#12 17.52 Type 'ListenerStore | ArgumentStore | CommandStore | InteractionHandlerStore | PreconditionStore' is not assignable to type 'InteractionHandlerStore'.

#12 17.52 Property 'run' is missing in type 'ListenerStore' but required in type 'InteractionHandlerStore'.

#12 17.52

#12 17.52 14 super(ctx, {

#12 17.52 ~~~

#12 17.52



#12 17.52 node_modules/@sapphire/framework/dist/index.d.ts:2372:5

#12 17.52 2372 run(interaction: Interaction): Promise<boolean>;

#12 17.52 ~~~

#12 17.52 'run' is declared here.

#12 17.52

#12 17.52

#12 17.52 Found 1 error in src/interaction-handlers/modals/embed-edit/embed-edit.ts:14

#12 17.52



#12 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build:

17.52 ~~~

17.52

17.52 node_modules/@sapphire/framework/dist/index.d.ts:2372:5

17.52 2372 run(interaction: Interaction): Promise<boolean>;

17.52 ~~~

17.52 'run' is declared here.

17.52

17.52

17.52 Found 1 error in src/interaction-handlers/modals/embed-edit/embed-edit.ts:14

17.52

-----



Dockerfile:24

-------------------

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2



Error: Docker build failed






#11 [stage-0 7/10] COPY . /app/.

#11 DONE 0.1s



#12 [stage-0 8/10] RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build



#12 1.376 npm

WARN config production Use `--omit=dev` instead.

#12 1.497

#12 1.497 > [email protected] build

#12 1.497 > tsc

#12 1.497



#12 17.52 src/interaction-handlers/modals/embed-edit/embed-edit.ts:14:15 - error TS2345: Argument of type 'PieceContext<keyof StoreRegistryEntries>' is not assignable to parameter of type 'LoaderContext'.

#12 17.52 Types of property 'store' are incompatible.

#12 17.52 Type 'ListenerStore | ArgumentStore | CommandStore | InteractionHandlerStore | PreconditionStore' is not assignable to type 'InteractionHandlerStore'.

#12 17.52 Property 'run' is missing in type 'ListenerStore' but required in type 'InteractionHandlerStore'.

#12 17.52

#12 17.52 14 super(ctx, {

#12 17.52 ~~~

#12 17.52



#12 17.52 node_modules/@sapphire/framework/dist/index.d.ts:2372:5

#12 17.52 2372 run(interaction: Interaction): Promise<boolean>;

#12 17.52 ~~~

#12 17.52 'run' is declared here.

#12 17.52

#12 17.52

#12 17.52 Found 1 error in src/interaction-handlers/modals/embed-edit/embed-edit.ts:14

#12 17.52



#12 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build:

17.52 ~~~

17.52

17.52 node_modules/@sapphire/framework/dist/index.d.ts:2372:5

17.52 2372 run(interaction: Interaction): Promise<boolean>;

17.52 ~~~

17.52 'run' is declared here.

17.52

17.52

17.52 Found 1 error in src/interaction-handlers/modals/embed-edit/embed-edit.ts:14

17.52

-----



Dockerfile:24

-------------------

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/d9a66794-7b01-4dc8-8c5b-149b515e8a09-node_modules/cache,target=/app/node_modules/.cache npm run build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2



Error: Docker build failed
Solution:
Just got a message from the framework developers, it's a bug that will be fixed in some minutes. Nothing Railway related!
Jump to solution
8 Replies
Percy
Percy•13mo ago
Project ID: d9a66794-7b01-4dc8-8c5b-149b515e8a09,d9a66794-7b01-4dc8-8c5b-149b515e8a09,d9a66794-7b01-4dc8-8c5b-149b515e8a09
Brody
Brody•13mo ago
can you build this locally?
yibuh
yibuhOP•13mo ago
Not being able atm as I don't have Python installed and some libraries require me to have it installed. However, bot was working fine some minutes ago and I made non-breaking changes to the code, literally added two or three new functions
Brody
Brody•13mo ago
no worries, let me know if you are able to build this locally
yibuh
yibuhOP•13mo ago
I'll install Python and let you know in some minutes
Solution
yibuh
yibuh•13mo ago
Just got a message from the framework developers, it's a bug that will be fixed in some minutes. Nothing Railway related!
yibuh
yibuhOP•13mo ago
Thanks for your quick replies 🙂
Brody
Brody•13mo ago
no problem!
Want results from more Discord servers?
Add your server