pankod / moleculerjs-boilerplate

A well-structured Moleculer JS Boilerplate with Typescript, CLI, Service Helpers, Swagger, Jest support and everything you'll ever need to deploy rock solid projects. https://pankod.github.io/moleculerjs-boilerplate/
MIT License
195 stars 36 forks source link

error when run npm run dev #80

Open bolerap opened 3 years ago

bolerap commented 3 years ago

hi all, Following this https://pankod.github.io/moleculerjs-boilerplate/docs/setup After run command npm run dev i got this error. What wrong with me?

[Runner] ⨯ Unable to compile TypeScript:
moleculer.config.ts(33,2): error TS2322: Type '{ namespace: string; nodeID: undefined; logger: true; logLevel: "info"; logFormatter: string; logObjectPrinter: undefined; transporter: { type: string; options: { udpDiscovery: boolean; }; }; serializer: string; ... 19 more ...; replCommands: undefined; }' is not assignable to type 'BrokerOptions'.
  Object literal may only specify known properties, and 'logFormatter' does not exist in type 'BrokerOptions'.
issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.72. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

icex commented 3 years ago

I've gotten around it by commenting out in moleculer.config.ts

// logFormatter: 'default',

and // logObjectPrinter: undefined,