Mendix Native App Error

2
Hi All, I am getting an error/exception while running my native app on Mendix Make it Native Android Application. The error message is below: Unable to resolve module `mendix/native` from `index.js`: mendix/native could not be found within the project or in these directories: C:\Program Files\Mendix\8.13.0.3768\modeler\tools\node\node_modules\mendix If you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all 2. Delete node_modules: rm -rf node_modules and run yarn install 3. Reset Metro's cache: yarn start --reset-cache 4. Remove the cache: rm -rf /tmp/metro-* I checked this location (C:\Program Files\Mendix\8.13.0.3768\modeler\tools\node\node_modules\mendix) doesn't exist in my pc i.e. there is no mendix folder in node_modules folder. Can anyone help me in resolving this error ?? Reagrds, Shivanshu
asked
3 answers
6

Make sure both your project and installation of Studio Pro are on the same drive (C:/).

answered
1

Looks like some files missing from the installation directory. Please try installing latest Mendix Studio Pro from the appstore and open your project in this version

https://docs.mendix.com/releasenotes/studio-pro/8.13#8131

Also check if your Make it Native app is updated to the latest version. 

answered
0

I'm having this error in simple app from scratch:

 

Error: ENOENT: no such file or directory, open '/Applications/Studio Pro 10.14.0.44044-Beta.app/Contents/modeler/tools/node/node_modules/@react-native-community/cli-server-api/build/index.html'    

at Object.openSync (node:fs:590:3) at Object.readFileSync (node:fs:458:35) at indexPageMiddleware (/Applications/Studio Pro 10.14.0.44044-Beta.app/Contents/modeler/tools/node/node_modules/@react-native-community/cli-server-api/build/indexPageMiddleware.js:32:27) at call (/Applications/Studio Pro 10.14.0.44044-Beta.app/Contents/modeler/tools/node/node_modules/connect/index.js:239:7) at Immediate.next (/Applications/Studio Pro 10.14.0.44044-Beta.app/Contents/modeler/tools/node/node_modules/connect/index.js:183:5) at processImmediate (node:internal/timers:468:21)

answered