Unable to build APK using Mendix Studio Pro

0
Hello,    I tried to build native mobile application (apk) using Mendix Studio pro but I’m always receiving following error:    G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\win-x64\node.exe G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\react-native\local-cli\cli.js bundle --config "C:\Users\HP\Documents\Mendix\VisitorGatepassSystem-main\deployment\native\metro.config.json" --dev "false" --entry-file "C:\Users\HP\Documents\Mendix\VisitorGatepassSystem-main\deployment\native\index.js" --platform "android" --bundle-output "C:\Users\HP\Documents\Mendix\VisitorGatepassSystem-main\deployment\native\bundle\android\assets\index.android.bundle" --assets-dest "C:\Users\HP\Documents\Mendix\VisitorGatepassSystem-main\deployment\native\bundle\android\res" [Output] Welcome to Metro v0.72.3 [Output] Fast - Scalable - Integrated [Error] error Unable to resolve module @babel/runtime/helpers/interopRequireDefault from C:\Users\HP\Documents\Mendix\VisitorGatepassSystem-main\deployment\native\index.js: @babel/runtime/helpers/interopRequireDefault could not be found within the project or in these directories: [Error] ..\..\..\..\..\node_modules [Error] > 1 | import { NativeUI, startApp, t } [Error] > 1 | import { NativeUI, startApp, t } from "mendix/native"; abel/runtime/helpers/interopRequireDefault could not be found within the project or in these directories: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[Error]   2 | import { navigationStyle } from "./styles.js"; [Error]   3 | import MyFirstModule$Images$Untitled__9_$png from "C:/Users/HP/Documents/Mendix/VisitorGatepassSystem-main/deployment/native/img/MyFirstModule$Images$Untitled__9_.png"; [Output] ..\..\..\..\..\node_modules [Output] G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\@babel\runtime\helpers\interopRequireDefault [Output] > 1 | import { NativeUI, startApp, t } from "mendix/native"; [Output]   2 | import { navigationStyle } from "./styles.js"; [Output]   3 | import MyFirstModule$Images$Untitled__9_$png from "C:/Users/HP/Documents/Mendix/VisitorGatepassSystem-main/deployment/native/img/MyFirstModule$Images$Untitled__9_.png"; [Error]   4 | import MyFirstModule$Images$dashboard__3_$png from "C:/Users/HP/Documents/Mendix/VisitorGatepassSystem-main/deployment/native/img/MyFirstModule$Images$dashboard__3_.png";. [Output]   4 | import MyFirstModule$Images$dashboard__3_$png from "C:/Users/HP/Documents/Mendix/VisitorGatepassSystem-main/deployment/native/img/MyFirstModule$Images$dashboard__3_.png"; [Output] at ModuleResolver.resolveDependency (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:178:15) [Output] at DependencyGraph.resolveDependency (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\node-haste\DependencyGraph.js:264:43) [Output] at Object.resolve (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\lib\transformHelpers.js:170:21) [Output] at resolveDependencies (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:466:33) [Output] at processModule (G:\My Mendix Builds\9.24.0.2965\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 (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:221:3) [Output] at async Promise.all (index 0) [Output] at async initialTraverseDependencies (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\DeltaBundler\graphOperations.js:204:3) [Output] at async DeltaCalculator._getChangedDependencies (G:\My Mendix Builds\9.24.0.2965\modeler\tools\node\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:208:25) [Output] info Run CLI with --verbose flag for more details.   Will anybody please help me with the resolution for the same?    Regards,    Ashishkumar 
asked
1 answers
0

Hello Ashishkumar Pawar

 

Please see the answer in 

https://forum.mendix.com/link/space/mobile/questions/124164

it may help ...

answered