Closed sajidali closed 8 months ago
So it turns out, that api.service.ts has a spelling issue, callingOptions
should be callOptions
,
This can be verified from ApiSettingsSchema
, and also from moleculer-web.html#Calling-options
After fixing above issue, I encountered #67, which was solved using suggestion provided in #67.
services/api.service.ts:78:5 - error TS2322: Type '{ path: string; whitelist: string[]; use: never[]; mergeParams: true; authentication: false; authorization: false; autoAliases: true; aliases: {}; callingOptions: {}; bodyParsers: { json: { strict: false; limit: string; }; urlencoded: { ...; }; }; mappingPolicy: "all"; logging: true; }' is not assignable to type 'ApiRouteSchema'. Object literal may only specify known properties, but 'callingOptions' does not exist in type 'ApiRouteSchema'. Did you mean to write 'callOptions'?
78 callingOptions: {},
After running
moleculer init project-typescript projectname
, when trying to run the project using npm run dev, I am getting above error.Here are my configuration when setting up project.