Native Mobile App camera problem

0
Hi, I am following the Build a Native Mobile Inspection App course. I am using Studio Pro version 10.24.3. I created the project based on the Blank Native Mobile App template, version 10.24.75382 (Aug 01, 2025). I have reached step 4.5.3: Add Take Photo Action and I am experiencing a problem. When I try to launch the phone camera, an error occurs. In the logs, I see:   An error occurred while executing an action of NativeMobile.Issue_View.actionButton7: Unable to resolve module ./javascriptsource/nativemobileresources/actions/node_modules/react-native-permissions/src/index from E:\Program Files\Mendix_projects\InspectionApp-main\deployment\native/.:  None of these files exist:  * javascriptsource\nativemobileresources\actions\node_modules\react-native-permissions\src\index(.android.native.js|.native.native.js|.native.js|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.cjs|.native.cjs|.cjs|.android.mjs|.native.mjs|.mjs|.android.json|.native.json|.json|.android.js_commonjs-exports|.native.js_commonjs-exports|.js_commonjs-exports|.android.js_commonjs-module|.native.js_commonjs-module|.js_commonjs-module)  * javascriptsource\nativemobileresources\actions\node_modules\react-native-permissions\src\index Nanoflow stack: "Call JavaScript Action" in nanoflow "NativeMobile.ACT_Issue_TakePicture" Current page: NativeMobile.Issue_View Stack:Error: An error occurred while executing an action of NativeMobile.Issue_View.actionButton7: Unable to resolve module ./javascriptsource/nativemobileresources/actions/node_modules/react-native-permissions/src/index from E:\Program Files\Mendix_projects\InspectionApp-main\deployment\native/.:  None of these files exist:  * javascriptsource\nativemobileresources\actions\node_modules\react-native-permissions\src\index(.android.native.js|.native.native.js|.native.js|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.cjs|.native.cjs|.cjs|.android.mjs|.native.mjs|.mjs|.android.json|.native.json|.json|.android.js_commonjs-exports|.native.js_commonjs-exports|.js_commonjs-exports|.android.js_commonjs-module|.native.js_commonjs-module|.js_commonjs-module)  * javascriptsource\nativemobileresources\actions\node_modules\react-native-permissions\src\index Nanoflow stack: "Call JavaScript Action" in nanoflow "NativeMobile.ACT_Issue_TakePicture"    at anonymous (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:243044:371)    at apply (native)    at executeAction (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:9585:22)    at res (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:9561:27)    at handleError$1 (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:242599:34)    at tryCallOne (address at InternalBytecode.js:1:1180)    at anonymous (address at InternalBytecode.js:1:1874)    at apply (native)    at anonymous (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:43056:26)    at _callTimer (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:42975:17)    at _callReactNativeMicrotasksPass (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:43005:17)    at callReactNativeMicrotasks (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:43168:44)    at __callReactNativeMicrotasks (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:14308:48)    at anonymous (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:14119:45)    at __guard (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:14291:15)    at flushedQueue (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:14118:21)    at callFunctionReturnFlushedQueue (http://192.168.0.25:8083/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.mendix.developerapp.mx10&modulesOnly=false&runModule=true:14103:33)
asked
1 answers
0

hi,

Try giving access rules to user to create objects 

 

answered