When developing micro compiled using the typescript letter applet error, the real test can not generate two-dimensional code issue summary

This document is Typescript problems encountered by the development of small micro-channel micro-channel program developer tools!

 

First show you what problems I encountered hints here and compile error message:

From the above great tips that I really did not see what constructive tips.

So I began the long path of exploration, summed up the situation this may cause problems are the following:

1, import incoming object is not used! Defined variable is not used!

2, a plurality of the introduction page getApp <IAppOption> variable name used (time) repeated! You can use a file ts introduced, and then the other page introduction resolve this issue by way of import.

3, when using the second problem app introduced, judgment is not performed if (app.globalData.userInfo), direct calling app.globalData.userInfo.nickName value. The specific reasons unknown, if one can explain, please leave a message enlighten me, thank you

Guess you like

Origin www.cnblogs.com/janken/p/12102472.html