Skip to content

Medusa eats installation is failing. #46

Open
@chandruv21

Description

@chandruv21

Hi Team,

I'm following same steps as shown in Reame.md , and installation is failing in the step(yarn setup-db).

Error:
`
yarn run v1.22.22
$ npx medusa build && npx medusa migrations run && npx m
edusa links sync && medusa exec ./src/scripts/seed.ts &&
npx medusa user -e [email protected] -p supersecret
info: Starting build...
info: Compiling backend source...
info: Removing existing ".medusa/server" folder
info: Compiling frontend source...
src/scripts/seed.ts:14:10 - error TS2305: Module '"@medu
sajs/modules-sdk"' has no exported member 'RemoteLink'.

14 import { RemoteLink } from "@medusajs/modules-sdk";
~~~~~~~~~~
src/workflows/delivery/steps/create-delivery.ts:11:22 -
error TS2352: Conversion of type '{ id: string; transact
ion_id: string; driver_id: string; delivery_status: Deli
veryStatus; eta: Date; delivered_at: Date; deliveryDrive
r: { id: string; delivery: ...; ... 5 more ...; driver_i
d: string; }[]; created_at: Date; updated_at: Date; dele
ted_at: Date; }' to type 'DeliveryDTO' may be a mistake
because neither type sufficiently overlaps with the othe
r. If this was intentional, convert the expression to 'u
nknown' first.
Type '{ id: string; transaction_id: string; driver_id:
string; delivery_status: DeliveryStatus; eta: Date; del
ivered_at: Date; deliveryDriver: { id: string; delivery:
...; ... 5 more ...; driver_id: string; }[]; created_at
: Date; updated_at: Date; deleted_at: Date; }' is missin
g the following properties from type 'DeliveryDTO': item
s, restaurant

11 const delivery = await service.createDeliveries({
}) as DeliveryDTO
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/workflows/delivery/steps/notify-restaurant.ts:41:51
- error TS2353: Object literal may only specify known pr
operties, and 'input' does not exist in type 'Error'.

41     logger.error("Failed to notify restaurant", { inp
ut });
                                                     ~~~
~~
src/workflows/delivery/workflows/claim-delivery.ts:34:7
- error TS2322: Type '{ id: string | WorkflowData<string
>; transaction_id: string | WorkflowData<string>; driver
_id: string | WorkflowData<string>; ... 6 more ...; dele
ted_at: Date | WorkflowData<...>; } & { ...; } & Workflo
wDataProperties<...> & { ...; } & StepFunctionReturnConf
ig<...>' is not assignable to type '(DeliveryDTO | Workf
lowData<DeliveryDTO>) & DeliveryDTO'.
  Type '{ id: string | WorkflowData<string>; transaction
_id: string | WorkflowData<string>; driver_id: string |
WorkflowData<string>; ... 6 more ...; deleted_at: Date |
 WorkflowData<...>; } & { ...; } & WorkflowDataPropertie
s<...> & { ...; } & StepFunctionReturnConfig<...>' is no
t assignable to type '{ id: string | WorkflowData<string
>; transaction_id: string | WorkflowData<string>; driver
_id?: string | WorkflowData<string>; ... 8 more ...; res
taurant: RestaurantDTO | WorkflowData<...>; } & Delivery
DTO & WorkflowDataProperties<...> & { ...; }'.
    Type '{ id: string | WorkflowData<string>; transacti
on_id: string | WorkflowData<string>; driver_id: string
| WorkflowData<string>; ... 6 more ...; deleted_at: Date
 | WorkflowData<...>; } & { ...; } & WorkflowDataPropert
ies<...> & { ...; } & StepFunctionReturnConfig<...>' is
missing the following properties from type '{ id: string
 | WorkflowData<string>; transaction_id: string | Workfl
owData<string>; driver_id?: string | WorkflowData<string
>; delivered_at?: Date | WorkflowData<...>; ... 7 more .
..; restaurant: RestaurantDTO | WorkflowData<...>; }': i
tems, restaurant

34       updatedDelivery: claimedDelivery,
         ~~~~~~~~~~~~~~~

  src/workflows/util/steps/set-step-success.ts:11:3
    11   updatedDelivery: DeliveryDTO;
         ~~~~~~~~~~~~~~~
    The expected type comes from property 'updatedDelive
ry' which is declared here on type 'SetStepSuccessStepIn
put | WorkflowData<SetStepSuccessStepInput>'
src/workflows/delivery/workflows/update-delivery.ts:27:7
 - error TS2322: Type '{ id: string | WorkflowData<strin
g>; transaction_id: string | WorkflowData<string>; drive
r_id: string | WorkflowData<string>; ... 6 more ...; del
eted_at: Date | WorkflowData<...>; } & { ...; } & Workfl
owDataProperties<...> & { ...; } & StepFunctionReturnCon
fig<...>' is not assignable to type '(DeliveryDTO | Work
flowData<DeliveryDTO>) & DeliveryDTO'.
  Type '{ id: string | WorkflowData<string>; transaction
_id: string | WorkflowData<string>; driver_id: string |
WorkflowData<string>; ... 6 more ...; deleted_at: Date |
 WorkflowData<...>; } & { ...; } & WorkflowDataPropertie
s<...> & { ...; } & StepFunctionReturnConfig<...>' is no
t assignable to type '{ id: string | WorkflowData<string
>; transaction_id: string | WorkflowData<string>; driver
_id?: string | WorkflowData<string>; ... 8 more ...; res
taurant: RestaurantDTO | WorkflowData<...>; } & Delivery
DTO & WorkflowDataProperties<...> & { ...; }'.
    Type '{ id: string | WorkflowData<string>; transacti
on_id: string | WorkflowData<string>; driver_id: string
| WorkflowData<string>; ... 6 more ...; deleted_at: Date
 | WorkflowData<...>; } & { ...; } & WorkflowDataPropert
ies<...> & { ...; } & StepFunctionReturnConfig<...>' is
missing the following properties from type '{ id: string
 | WorkflowData<string>; transaction_id: string | Workfl
owData<string>; driver_id?: string | WorkflowData<string
>; delivered_at?: Date | WorkflowData<...>; ... 7 more .
..; restaurant: RestaurantDTO | WorkflowData<...>; }': i
tems, restaurant
.....
....
`

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