Build Native App locally fails with

3
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] > 1 | import { NativeUI, startApp, t } from "mendix/native"; [Error]     |                                        ^ [Error]   2 | import { navigationStyle } from "./styles.js"; [Error]   3 | [Error]   4 | startApp({. [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] > 1 | import { NativeUI, startApp, t } from "mendix/native"; [Output]     |                                        ^ [Output]   2 | import { navigationStyle } from "./styles.js"; [Output]   3 | [Output]   4 | startApp({ [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
1 answers
7

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.

 

 

answered