My app works well on simulator but standalone app doesn't work after publishing

Expo app renders “Unhandled JS Exception: undefined is not a function (near ‘…babelHelpers.asyncToGenerator…’)” message when I try to launch my standalone app published by “exp publish”.

I can launch my app on local with “exp start -c --minify --no-dev” command.
What’s the problem on my app?

It’s hard to tell. Is that all of the error you’re seeing? Can you share the app?

Yes that’s all I can see.
It’s a screenshot of my app right after execution via published url.

Should I add more plugin to .babelrc?
I didn’t add anything more since initializing the project.

Without a code example it will be near impossible for us to help you debug this @devit.

If you are uncomfortable with sharing those things, it might be useful for you to share your SDK version and your dependencies.

Thank you for your reply,

"sdkVersion": "26.0.0",

This is the sdkVersion written in my app.json and below is my dependency in package.json

“dependencies”: {
“babel-preset-es2017”: “^6.24.1”,
“babel-preset-react-native”: “^4.0.0”,
“expo”: “26.0.0”,
“humps”: “^2.0.1”,
“lodash”: “^4.17.5”,
“moment”: “^2.22.1”,
“native-base”: “^2.4.1”,
“prop-types”: “^15.6.1”,
“react”: “16.3.0”,
“react-native”: “0.54.2”,
“react-native-is-iphonex”: “^1.0.1”,
“react-native-render-html”: “^3.9.3”,
“react-native-router-flux”: “^4.0.0-beta.28”
}

Oh, finally I got succeeded to launch my app!
Seemingly the issue was caused by wrong declaration of some babel plugin dependency.
I moved the dependencies from devDependencies to dependencies in package.json and the issue got resolved.

Thanks for your reply and mention of my dependencies :slight_smile:

1 Like

Thank you for using Expo! I’m glad you were able to figure this all out on your own, pretty smart :slight_smile:

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