TypeScript error TS1005: ';' expected (II)

后端 未结 9 1099
旧巷少年郎
旧巷少年郎 2020-12-09 02:11

First of all, I\'ve already seen the other posts about error TS1005. Same error code, but totally different.

A simple let x: number; will gener

9条回答
  •  误落风尘
    2020-12-09 02:53

    I was injecting service like this:

    private messageShowService MessageShowService
    

    instead of:

    private messageShowService: MessageShowService
    

    and that was the reason of error, despite nothing related with ',' was there.

提交回复
热议问题