Build failing

hansbkhiHOBBY

6 months ago

15 9.995 src/pages/admin/Products.tsx(56,24): error TS2345: Argument of type '{ name: string; brand: string; price: number; category: string; description: string; image: string; isNew: boolean; isOnSale: boolean; discount: number; stock: number; isFeatured: boolean; }' is not assignable to parameter of type 'Omit'.

15 9.995 Type '{ name: string; brand: string; price: number; category: string; description: string; image: string; isNew: boolean; isOnSale: boolean; discount: number; stock: number; isFeatured: boolean; }' is missing the following properties from type 'Omit': imageUrl, active

15 9.995 src/pages/admin/Products.tsx(148,30): error TS2339: Property 'isNew' does not exist on type 'Perfume'.

15 9.995 src/pages/admin/Products.tsx(150,30): error TS2339: Property 'isFeatured' does not exist on type 'Perfume'.

15 9.995 src/services/auth.service.ts(67,23): error TS2322: Type '{ id: string; email: string; firstName: string; lastName: string; phone: string | undefined; role: "CLIENT"; createdAt: Date; updatedAt: Date; }' is not assignable to type 'User'.

15 9.995 Types of property 'role' are incompatible.

15 9.995 Type '"CLIENT"' is not assignable to type 'UserRole'.

15 9.995 src/services/auth.service.ts(98,39): error TS6133: 'password' is declared but its value is never read.

15 9.996 src/services/category.service.ts(2,10): error TS2305: Module '"@/types"' has no exported member 'Category'.

15 9.996 src/services/promotion.service.ts(2,10): error TS2305: Module '"@/types"' has no exported member 'Promotion'.

15 9.996 src/stores/globalStore.ts(144,23): error TS2341: Property 'connect' is private and only accessible within class 'SocketManager'.

15 9.996 src/stores/globalStore.ts(144,31): error TS2554: Expected 0 arguments, but got 1.

15 9.996 src/stores/globalStore.ts(159,11): error TS2349: This expression is not callable.

15 9.996 Type 'void' has no call signatures.

15 9.996 src/stores/globalStore.ts(160,11): error TS2349: This expression is not callable.

15 9.996 Type 'void' has no call signatures.

15 9.996 src/stores/globalStore.ts(161,11): error TS2349: This expression is not callable.

15 9.996 Type 'void' has no call signatures.

15 9.996 src/stores/globalStore.ts(162,25): error TS2339: Property 'disconnect' does not exist on type 'SocketManager'.

15 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

> [builder 10/10] RUN npm run build:

9.996 src/services/promotion.service.ts(2,10): error TS2305: Module '"@/types"' has no exported member 'Promotion'.

9.996 src/stores/globalStore.ts(144,23): error TS2341: Property 'connect' is private and only accessible within class 'SocketManager'.

9.996 src/stores/globalStore.ts(144,31): error TS2554: Expected 0 arguments, but got 1.

9.996 src/stores/globalStore.ts(159,11): error TS2349: This expression is not callable.

9.996 Type 'void' has no call signatures.

9.996 src/stores/globalStore.ts(160,11): error TS2349: This expression is not callable.

9.996 Type 'void' has no call signatures.

9.996 src/stores/globalStore.ts(161,11): error TS2349: This expression is not callable.

9.996 Type 'void' has no call signatures.

9.996 src/stores/globalStore.ts(162,25): error TS2339: Property 'disconnect' does not exist on type 'SocketManager'.

Dockerfile:24

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

6 months ago

Mind sharing your full build logs using this tool?
https://bookmarklets.up.railway.app/log-downloader/