目录

What should I do if the error message "TypeError: Cannot read properties of undefined (reading 'hxml')" is displayed?

Symptom

The error message "TypeError: Cannot read properties of undefined (reading 'hxml')" is displayed when the CLI conversion tool is used.

Solution

Check whether the mini program type is correct and whether the first page under the pages property in the app.json file uses the correct file format, for example, index.wxml/index.axml.