Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not working on expo production mode #25

Open
francesco-clementi-92 opened this issue Nov 13, 2021 · 3 comments
Open

App not working on expo production mode #25

francesco-clementi-92 opened this issue Nov 13, 2021 · 3 comments

Comments

@francesco-clementi-92
Copy link

  • I'm submitting a ...
    [X] bug report

The app doesn't work on minified/production code.

Step:

  1. create a new app
  2. run expo start --no-dev
  3. try to open web/android/ios it will not start
  4. if you digit w on console, it will show the real error
C:\my-react-dapp\node_modules\metro-hermes-compiler\src\emhermesc.js:81
          throw ex;
          ^

RuntimeError: abort(TypeError: Cannot read properties of undefined (reading 'before')). Build with -s ASSERTIONS=1 for more info.        
    at process.abort (C:\cry\my-react-dapp\node_modules\metro-hermes-compiler\src\emhermesc.js:796:13)
    at process.emit (node:events:390:28)
    at process.emit (C:\Users\cico\AppData\Roaming\npm\node_modules\expo-cli\node_modules\source-map-support\source-map-support.js:439:21)
    at emit (node:internal/process/promises:136:22)
    at processPromiseRejections (node:internal/process/promises:242:25)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

Please any idea on how to run the app in production mode?

@francesco-clementi-92
Copy link
Author

I also tried to downgrade expo, but same error on different location

@cawfree
Copy link
Owner

cawfree commented Nov 17, 2021

This project is ejected from expo, so I believe we wouldn't be able to expect it to work with just the expo start command.

Does it work as expected when you run yarn ios/yarn android?

@SamanthaSHan
Copy link

Actually, it does work with expo start -- at least for connecting the wallet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants