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

undefined is not a function (evaluating '$GOPS.f(toObject(it))') #554

Closed
helloagain-dev opened this issue May 20, 2019 · 2 comments
Closed

Comments

@helloagain-dev
Copy link

helloagain-dev commented May 20, 2019

I am getting the following exception with react-native due to the following change #539 in core-js 2.6.6.

This only happens on Android running on the device. If I debug the app with chrome, the crash does not happen.

Fixing the version of core-js to 2.6.5 resolved the issue.

Screenshot (20 May 2019 18_29_10)

package.json

{
  "name": "@shoutem/platform",
  "version": "1.8.1",
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "setup": "cd scripts && yarn install",
    "lint": "eslint .",
    "configure": "node scripts/configure",
    "bundle": "node scripts/bundle",
    "build": "node scripts/build"
  },
  "dependencies": {
    "@shoutem/animation": "~0.12.3",
    "@shoutem/core": "0.2.7",
    "@shoutem/redux-composers": "0.1.4",
    "@shoutem/redux-io": "3.0.1-beta.3",
    "@shoutem/theme": "~0.11.3",
    "@shoutem/ui": "~0.23.12",
    "@shoutem/ui-addons": "~0.0.30",
    "babel-preset-es2015": "~6.24.1",
    "es6-symbol": "3.1.1",
    "lodash": "~4.17.4",
    "moment": "2.22.2",
    "prop-types": "15.6.0",
    "react": "16.4.1",
    "react-native": "0.56.0",
    "react-redux": "~5.0.2",
    "redux": "~3.6.0",
    "redux-action-buffer": "~1.0.1",
    "redux-api-middleware": "2.0.1",
    "redux-logger": "2.6.1",
    "redux-persist": "4.1.0",
    "redux-thunk": "~2.0.0",
    "whatwg-fetch": "1.0.0",
    "seblau.auth": "file:extensions/seblau.auth/app",
    "seblau.callisto": "file:extensions/seblau.callisto/app",
    "seblau.camera": "file:extensions/seblau.camera/app",
    "seblau.fbnewsfeed": "file:extensions/seblau.fbnewsfeed/app",
    "seblau.firebase": "file:extensions/seblau.firebase/app",
    "seblau.form-builder": "file:extensions/seblau.form-builder/app",
    "seblau.helloagain": "file:extensions/seblau.helloagain/app",
    "seblau.ibeacon": "file:extensions/seblau.ibeacon/app",
    "seblau.invoice": "file:extensions/seblau.invoice/app",
    "seblau.leaderboard": "file:extensions/seblau.leaderboard/app",
    "seblau.loyalty": "file:extensions/seblau.loyalty/app",
    "seblau.messaging-center": "file:extensions/seblau.messaging-center/app",
    "seblau.page": "file:extensions/seblau.page/app",
    "seblau.ratings": "file:extensions/seblau.ratings/app",
    "seblau.sportgigant": "file:extensions/seblau.sportgigant/app",
    "seblau.web-view": "file:extensions/seblau.web-view/app",
    "shoutem.about": "file:extensions/shoutem.about/app",
    "shoutem.analytics": "file:extensions/shoutem.analytics/app",
    "shoutem.application": "file:extensions/shoutem.application/app",
    "shoutem.cms": "file:extensions/shoutem.cms/app",
    "shoutem.favorites": "file:extensions/shoutem.favorites/app",
    "shoutem.flurry-analytics": "file:extensions/shoutem.flurry-analytics/app",
    "shoutem.i18n": "file:extensions/shoutem.i18n/app",
    "shoutem.layouts": "file:extensions/shoutem.layouts/app",
    "shoutem.navigation": "file:extensions/shoutem.navigation/app",
    "shoutem.persist": "file:extensions/shoutem.persist/app",
    "shoutem.preview": "file:extensions/shoutem.preview/app",
    "shoutem.rubicon-theme": "file:extensions/shoutem.rubicon-theme/app",
    "shoutem.sub-navigation": "file:extensions/shoutem.sub-navigation/app",
    "shoutem.theme": "file:extensions/shoutem.theme/app",
    "shoutem.web-view": "file:extensions/shoutem.web-view/app"
  },
  "resolutions": {
    "react-native/**/stacktrace-parser": "0.1.4",
    "core-js": "2.6.5"
  },
  "devDependencies": {
    "@shoutem/build-tools": "file:scripts/helpers",
    "babel": "~6.3.26",
    "babel-eslint": "~6.0.4",
    "babel-jest": "23.2.0",
    "babel-plugin-transform-decorators-legacy": "~1.3.4",
    "babel-preset-react-native": "^5.0.1",
    "eslint": "~2.9.0",
    "eslint-config-airbnb": "~8.0.0",
    "eslint-plugin-import": "~1.6.1",
    "eslint-plugin-jsx-a11y": "~1.0.4",
    "eslint-plugin-react": "~5.0.1",
    "eslint-plugin-react-native": "~1.0.2",
    "jest": "23.1.0",
    "react-test-renderer": "16.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}
@zloirock
Copy link
Owner

It's a conflict with an alternative not completely correct Symbol polyfill, see #550. A fix for this already added and will be published ASAP.

@zloirock
Copy link
Owner

Done.

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

2 participants