Hi, I’m using Build Native App v.1.0.128 and Mendix Pro v9.24.1.4658 on Windows 10. I’m encountering the following problem using the underneath repo steps: Start Mendix Studio Pro Create New App Select Template Blank Native Mobile App Select in the Menu → App → Build Native Mobile App Select Configure app for local building Set Version number to 0.0.1 Set Runtime Url http://coolapp.com Under Build type select a path to store the build files. In my case: D:\Samples\Mendix\App-main-mendix-build Select Configure locally A Dialog appears with Mendix project build failed: C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\win-x64\node.exe C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\react-native\local-cli\cli.js bundle --config "D:\Samples\Mendix\App-main\deployment\native\metro.config.json" --dev "false" --entry-file "D:\Samples\Mendix\App-main\deployment\native\index.js" --platform "ios" --bundle-output "D:\Samples\Mendix\App-main\deployment\native\bundle\iOS\index.ios.bundle" --assets-dest "D:\Samples\Mendix\App-main\deployment\native\bundle\iOS" [Output] Welcome to Metro v0.72.3 [Output] Fast - Scalable - Integrated [Error] error Unable to resolve module mendix/native from D:\Samples\Mendix\App-main\deployment\native\index.js: mendix/native could not be found within the project or in these directories: [Error] C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\mendix\native [Error] [0m[31m[1m>[22m[39m[90m 1 |[39m [36mimport[39m { [33mNativeUI[39m[33m,[39m startApp[33m,[39m t } [36mfrom[39m [32m"mendix/native"[39m[33m;[39m[0m [Error] [0m [90m |[39m [31m[1m^[22m[39m[0m [Error] [0m [90m 2 |[39m [36mimport[39m { navigationStyle } [36mfrom[39m [32m"./styles.js"[39m[33m;[39m[0m [Error] [0m [90m 3 |[39m[0m [Error] [0m [90m 4 |[39m startApp({[0m. [Output] Error: Unable to resolve module mendix/native from D:\Samples\Mendix\App-main\deployment\native\index.js: mendix/native could not be found within the project or in these directories: [Output] C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\mendix\native [Output] [0m[31m[1m>[22m[39m[90m 1 |[39m [36mimport[39m { [33mNativeUI[39m[33m,[39m startApp[33m,[39m t } [36mfrom[39m [32m"mendix/native"[39m[33m;[39m[0m [Output] [0m [90m |[39m [31m[1m^[22m[39m[0m [Output] [0m [90m 2 |[39m [36mimport[39m { navigationStyle } [36mfrom[39m [32m"./styles.js"[39m[33m;[39m[0m [Output] [0m [90m 3 |[39m[0m [Output] [0m [90m 4 |[39m startApp({[0m [Output] at ModuleResolver.resolveDependency (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:178:15) [Output] at DependencyGraph.resolveDependency (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\node-haste\DependencyGraph.js:264:43) [Output] at Object.resolve (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\lib\transformHelpers.js:170:21) [Output] at resolveDependencies (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:466:33) [Output] at processModule (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:232:31) [Output] at processTicksAndRejections (node:internal/process/task_queues:96:5) [Output] at async traverseDependenciesForSingleFile (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:221:3) [Output] at async Promise.all (index 0) [Output] at async initialTraverseDependencies (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:204:3) [Output] at async DeltaCalculator._getChangedDependencies (C:\Program Files\Mendix\9.24.1.4658\modeler\tools\node\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:208:25) [Output] info Run CLI with --verbose flag for more details. Since I’m on Windows, I dont understand why it tries to build the app for iOS. I only need the android package. There is no option to disable the build for iOS. Any idea how to resolve this?
asked
Martin Fetzel
1 answers
8
Hello Martin!
Your Mendix project isn’t located in the same drive of your Studio Pro installation, right?
There’s an issue in the 9.24+ that raises this exception. Try to move your Mendix Project MPR to the same drive where is located Studio Pro (in your case to drive C:) and check if it works.