If let or var variables are used to declare in TS, an error will appear:
Slint: identifier ‘errmsg’ will never be reassigned; Use ‘const’ instead of ‘let’. (prefer const)
code snippet:
Solution:
1. Use const to declare
2. Open tslint.json file under the project, set prefer-const to false.