I'm struggling with deploying the application. When it's building I get:
info: Starting build...
info: Compiling backend source...
info: Removing existing ".medusa/server" folder
info: Compiling frontend source...
src/workflows/hooks/create-customer.ts:31:40 - error TS18046: 'customerExtensionsService' is of type 'unknown'.
31 const newCustomerExtension = await customerExtensionsService
~~~~~~~~~~~~~~~~~~~~~~~~~
customerExtensionsService is a service created in the module directory.
I reproduced that error locally by removing .medusa/types directory and runnning medusa build
In development mode, when the types are generated everything works fine.
Any clues what might be wrong?