- Using MediaQueryObserver from a typescript file?
Morning, we want to use the MediaQueryObserver method from a typescript file. Based on the official documentation, "MediaQueryObserver" is available for version 2.11.1 and higher. When we check our version with: wx.getSystemInfoSync ().SDKVersion it shows 2.18.0, however, the wx.createMediaQueryObserver method is not available. This is what is detailed on the IDE Property 'createMediaQueryObserver' does not exist on type 'Wx'.ts(2339) Using the IDE version (env: Windows,mp,1.05.2109222; lib: 2.18.0) Any hint on how we could WA it? Regards
2021-11-30 - request to add configuration project.config.json?
Dear, this is a request to enhance the usage of the project.config.json file and the inclusion of the section "Enable Custom Processing Commands". We are generating WeChat Miniprogram projects from a code generation tool and want to use the CLI to directly compile the project and generate a QR code for testing. As we use typescript we need to enable the "Enable Custom Processing Commands" option, it is mandatory for us. As this configuration is not possible to set on the project.config.json (at least we did not find a way), we must enter the IDE manually to check it, then do the compilation and following steps. Because of this issue, we cannot automate the process from a CI/CD perspective. Is there an alternative on the case we could evaluate? Hope to have explained clearly the case. Using WeChat DevTools Stable # 1.05.2107090. regards,
2021-09-23