CCavelier
CCavelier
AAlokai
Created by CCavelier on 6/5/2024 in #🙋|general-help
buildModule with updated package
export default defineSdkConfig(
({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }:any) => ({
commerce: buildModule<SdkModule>(sdkModule),
magento: buildModule(middlewareModule<Endpoints> , {
apiUrl: middlewareUrl+"/magento",
cdnCacheBustingId:process.env.CDN_CACHE_BUSTING_ID,
defaultRequestConfig: {
headers: getRequestHeaders(),
},
})
})
);
export default defineSdkConfig(
({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }:any) => ({
commerce: buildModule<SdkModule>(sdkModule),
magento: buildModule(middlewareModule<Endpoints> , {
apiUrl: middlewareUrl+"/magento",
cdnCacheBustingId:process.env.CDN_CACHE_BUSTING_ID,
defaultRequestConfig: {
headers: getRequestHeaders(),
},
})
})
);
i've already this entry error is 'SdkModuleOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. in generate file : import { SdkModuleOptions } from "./vsfModule"; was import... Type 'any' has no signatures for which the type argument list is applicable. for -> <Endpoints> Untyped function calls may not accept type arguments. for line -> commerce: buildModule<SdkModule>(sdkModule),
6 replies
AAlokai
Created by CCavelier on 5/2/2024 in #🙋|general-help
storefront-nuxt3-boilerplate - magento api integration
hello, is just me, that work
6 replies