Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
QDS 4.3.1
-
Windows 10 22H2
Description
Steps to reproduce
- Load the attached project, MyProject/MyProject.qmlproject
- Click "Run Project" or "Live Preview"
Outcomes
The preview fails to start. We see this error in the Compile Output pane:
Screen01.ui.qml:2:1: error: The module 'MyModule' could not be found in the include paths.
Workaround 1: Manually pass the import path to qmlprojectexporter
- Enable "View" > "Mode Selector Style" > "Icons and Text"
- Select "Projects" mode (Ctrl+5)
- Expand "Run Settings" > "Qt for MCUs Deploy Step"
- Add this to the "Arguments" field: --include-dirs "<path>/<to>/MyExternalComponents"
Workaround 2: Treat the project as a Desktop project instead of an MCU project
In the *.qmlproject file, comment out the line, QDS.qtForMCUs: true
This disables qmlprojectexporter and the preview runs correctly.