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

"Uncaught TypeError: Cannot read property '_collection' of undefined" when run in Cordova #130

Open
1 task done
damonmaria opened this issue Sep 20, 2016 · 0 comments
Open
1 task done

Comments

@damonmaria
Copy link

Description of Problem

When running inside Cordova, and have used the workaround for #129, get the above error.

  • I switched back to the regular ecmascript and the problem went away.

Please copy and paste the full error from the console, if one occcured.

chromium: [INFO:CONSOLE(97)] "Uncaught TypeError: Cannot read property '_collection' of undefined", source: http://localhost:12088/packages/gadicc_hot.js?hash=91071c79fc2168877260451ca293d3e91b2b72a8 (97)

If the error occured on a particular file, please paste the full file here:

gadicc_hot.js

// If find() was called before we load                                                                       //
var queries = Autoupdate._ClientVersions._collection.queries;                                                // 39
for (var key in queries) {                                                                                   // 40
  queries[key].changed = augmentChanged(queries[key].changed);                                               // 41
}                                                                                                            // 42

Note: the code immediately after this would fail too.

Environment

  • Meteor version: 1.4.1.1
  • ecmascript-hot version: gadicc:[email protected]
  • Operating System: Mac OS X

Supporting files

.meteor/packages

[email protected]             # Packages every Meteor app needs to have
[email protected]       # Packages for a great mobile UX
[email protected]                   # The database Meteor supports right now
[email protected]                 # Meteor's client-side reactive programming library

[email protected]   # CSS minifier run for production mode
[email protected]    # JS minifier run for production mode
[email protected]                # ECMAScript 5 compatibility for older browsers.

[email protected]     # Account management based on passwords (other services can be added)
meteorhacks:unblock     # Allow parallel (per-client) processing of subscriptions
[email protected]             # Needed to include html/css after removing blaze
xolvio:backdoor         # Run arbitrary code on server in acceptance tests
dburles:factory         # Document factory for tests
aldeed:collection2      # Document schema checking
alanning:roles
reywood:publish-composite
gadicc:[email protected]
meteorhacks:aggregate
mizzao:timesync
[email protected]
[email protected]

.meteor/versions

[email protected]
[email protected]
alanning:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
dburles:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
gadicc:[email protected]
gadicc:[email protected]
gadicc:[email protected]
gadicc:[email protected]
gadicc:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
mdg:[email protected]
[email protected]
[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
[email protected]
[email protected]
[email protected]
mizzao:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
raix:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
reywood:[email protected]
[email protected]
sanjo:[email protected]_1
sanjo:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
xolvio:[email protected]

packages.json

{
  "name": "inspector-gadget",
  "version": "0.2.9",
  "private": true,
  "scripts": {
    "web:storybook": "start-storybook -p 9001 -c ../web/tests/storybook",
    "mobile:storybook": "start-storybook -p 9002 -c ../mobile/tests/storybook"
  },
  "dependencies": {
    "@mindhive/meteor": "^4.0.2",
    "babel-polyfill": "^6.13.0",
    "bcrypt": "^0.8.7",
    "date-fns": "^1.3.0",
    "enumify": "^1.0.4",
    "file-uri-to-path": "0.0.2",
    "is-promise": "^2.1.0",
    "keycode": "^2.1.6",
    "lru-memoize": "^1.0.1",
    "material-ui": "^0.15.4",
    "meteor-node-stubs": "^0.2.3",
    "mobx": "^2.5.1",
    "mobx-react": "^3.5.6",
    "react": "^15.3.2",
    "react-addons-css-transition-group": "^15.3.2",
    "react-addons-pure-render-mixin": "^15.3.2",
    "react-addons-transition-group": "^15.3.2",
    "react-custom-scrollbars": "^4.0.0",
    "react-dimensions": "^1.3.0",
    "react-dom": "^15.3.2",
    "react-event-listener": "^0.3.0",
    "react-helmet": "^3.1.0",
    "react-hot-loader": "^3.0.0-beta.4",
    "react-measure-it": "^0.1.1",
    "react-native-listener": "^1.0.1",
    "react-redux": "^4.4.5",
    "react-router": "^2.8.1",
    "react-scrollbar": "^0.4.1",
    "react-tap-event-plugin": "^1.0.0",
    "redux": "^3.6.0",
    "redux-form": "^6.0.5",
    "redux-form-material-ui": "4.0.1",
    "redux-thunk": "^2.1.0",
    "shallowequal": "^0.2.2",
    "tinycolor2": "^1.4.1"
  },
  "devDependencies": {
    "@kadira/storybook": "^2.15.1",
    "@mindhive/di": "^1.1.3",
    "@mindhive/some": "^2.4.0",
    "array-shuffle": "^1.0.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-es2015": "^6.14.0",
    "babel-preset-react": "^6.11.1",
    "babel-preset-stage-0": "^6.5.0",
    "chai": "^3.5.0",
    "chai-as-promised": "^5.3.0",
    "chai-datetime": "^1.4.1",
    "chai-enzyme": "^0.5.1",
    "chai-properties": "vbardales/chai-properties#pull/8/head",
    "enzyme": "^2.4.1",
    "mobx-react-devtools": "^4.2.6",
    "raw-loader": "^0.5.1",
    "react-addons-test-utils": "^15.3.2",
    "redbox-react": "^1.3.0",
    "redux-mock-store": "^1.2.0",
    "sinon": "^1.17.6",
    "sinon-chai": "^2.8.0",
    "sinon-stub-promise": "^3.0.1",
    "style-loader": "^0.13.1"
  }
}

.babelrc (if you modified it)

{
  "presets": [
    "react",
    "es2015",
    "stage-0"
  ],
  "plugins": [
    "transform-decorators-legacy"
  ],
  "env": {
    "development": {
      "plugins": [
        "react-hot-loader/babel"
      ]
    }
  }
}
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

1 participant