moleculerjs-boilerplate icon indicating copy to clipboard operation
moleculerjs-boilerplate copied to clipboard

error when run npm run dev

Open bolerap opened this issue 5 years ago • 2 comments

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'.

bolerap avatar Oct 06 '20 06:10 bolerap

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.

issue-label-bot[bot] avatar Oct 06 '20 06:10 issue-label-bot[bot]

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

// logFormatter: 'default',

and // logObjectPrinter: undefined,

icex avatar Dec 30 '20 10:12 icex