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

#1

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?

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes

#5

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.

0 Likes

#6

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”
}

0 Likes

#7

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

#8

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

0 Likes

closed #9

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

0 Likes