buildModule with updated package
i want integrate magento with nuxt3 boiler plate i've updated dependencies, now i've error on buildModule(middlewareModule<Endpoints>,{...}
if i create customQueries in middleware, i've compilation error
can you help me.
Thanks
5 Replies
Please update to the latest version and follow the docs here: https://docs.alokai.com/integrations/magento
If you're still having the issue please let us know 🙂
Alokai
Magento 2 SDK
Quickly build your storefront with the Alokai SDK for Magento. Connect your Magento 2 backend to any frontend framework with type-safe SDK methods
@CCavelier That overload error is because the BuildModule options expects a value for
cdnCacheBustingId
If you add it that error will resolve.
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),
To fix that import error you need to import as type
import type { SdkModuleOptions } from "./vsfModule"
yes but the import was added to the compilation, and for other errors