You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the exact tutorial in the Moleculer documentation, this is the code:
import moleculer from 'moleculer';
import ApiGateway from 'moleculer-web';
import { Service } from 'moleculer-decorators';
@Service({
mixins: [ApiGateway]
})
class ApiService extends moleculer.Service {
settings = {
port: process.env.PORT || 8080,
};
}
export = ApiService;
I'm getting the following error at mixins: [ApiGateway]:
Type 'ServiceSchema<ServiceSettingSchema> & { Errors: ApiGatewayErrors; }' is not assignable to type 'ServiceSchema<ServiceSettingSchema>'.
Types of property 'dependencies' are incompatible.
Type 'string | GenericObject | string[] | GenericObject[]' is not assignable to type 'string | ServiceDependency | (string | ServiceDependency)[]'.
Type 'GenericObject' is not assignable to type 'string | ServiceDependency | (string | ServiceDependency)[]'.
Type 'GenericObject' is not assignable to type 'string'.
Am I doing anything wrong?
The text was updated successfully, but these errors were encountered:
I followed the exact tutorial in the Moleculer documentation, this is the code:
I'm getting the following error at
mixins: [ApiGateway]
:Am I doing anything wrong?
The text was updated successfully, but these errors were encountered: