#AwilixResolutionError: Could not resolve 'OrderService'.

21 messages · Page 1 of 1 (latest)

short fjord
#

would any one guide on it
working on order-store ,
in this case order is getting created but not saving store id in it

dapper bane
#

Please do not ping or you will be timed out/banned.

short fjord
#

ok

dapper bane
#

lowercase "orderService"

short fjord
#

still An error occurred while processing order.placed: TypeError: Cannot read properties of undefined (reading 'relations')
is not resloved

stark cedar
#

its "orderService" not "OrderService"

short fjord
#

yes after changing it not able to resolve product service to get store_id

#

const product: Product = await ProductService.retrieve(item.variant.product_id, { select: ['store_id'] });

dapper bane
#

I'm blind, I don't see the product service and where are you getting it from

short fjord
dapper bane
#

I still don't see where are you getting it from and what is not working

short fjord
#

import { Product } from "../models/product";
import ProductService from '../services/product';

dapper bane
#

Please post the full subscriber

#

Also if you are importing it, then why this

#

And why don't you resolve it the same way like orderService

short fjord
#

its also not resolving the ProductService
order is placed without store id

dapper bane
#

Two people told you it's lowercase.

#

Sorry I don't understand, I'm out.

short fjord
#

sorry i have tried the lower case for orderService it worked ,
when tring the same with product it dnt go well