Hosting An App On Your Servers

C:\Users\sop.son\Desktop\test>expo export --public-url --dev [14:35:44] Cannot find module ‘validator’ [14:35:44] Set EXPO_DEBUG=true in your env to view the stack trace. C:\Users\sop.son\Desktop\test>expo export [14:36:01] Missing required option: --public-url C:\Users\sop.son\Desktop\test>expo export

I’m not really sure what to do with this question. To me this doesn’t look like a question at all.

Please explain your issue instead of posting an error code.

Thanks in advance

Hi @rauldeheer!
I excite with api “hosting an app on your servers”.
I have build project on server with cdn, when i exec cmd “expo export” on terminal
$ expo export
[15:28:35] Missing required option: --public-url

after i try
expo export --public-url --dev
[14:35:44] Cannot find module ‘validator’ [14:35:44] Set EXPO_DEBUG=true in your env to view the stack trace.

… this’s error or i missing step

In your .expo folder please change this:

  "hostType": "lan",
  "lanType": "ip",
  "dev": true,
  "minify": false,
  "urlRandomness": "89-pfa"

To this:

  "hostType": "lan",
  "lanType": "ip",
  "dev": false,
  "minify": false,
  "urlRandomness": "89-pfa"

Let me know if that works!

i try and same

likely expo-cli missing module ‘validator’

What NPM version do you have? Try to run npm -v to see the current version.

im using ver 6.0.1

after install node, npm, expo-cli lastest. and install package ‘validator’ in user…\Roaming\npm\node_modules/expo-cli
then export successfully.
But I cmd expo build:android --public-url
in progess build android

[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ‘:app:mergeProdMinSdkProdKernelReleaseResources’.
[stderr] > Error: java.util.concurrent.ExecutionException: AAPT2 error: check logs for details
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at
[stderr] BUILD FAILED in 5m 19s
670 actionable tasks: 670 executed
Error: Process exited with non-zero code: 1
at ChildProcess.child.on (/app/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

this is one in all build

Try installing validator as a global module “npm i -g validator”. That fixed the issue for me.

I had done! and build Build standalone app successful.
But currently, I facing problem OTA update . not loading new bundle

I had done test on github page and gitlab page and pass ,but my host using is iis server with http:// . I don’t know reason?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.