WeChat applet ts cannot redeclare the block scope variable "app" [Personal test and easy to use]

 Reason: TS believes that these files will eventually be merged into one file, while app declares it multiple times.

Solution: Let TS think that the file is an independent module

add on

export {}

 It can be solved

Guess you like

Origin blog.csdn.net/weixin_44383533/article/details/130583892