strongloop / strong-arc

StrongLoop Arc has been replaced by API Connect. We recommend Arc users move to the Essentials edition of API Connect. If you have questions, please email reachsl@us.ibm.com.
http://strongloop.com/
Other
114 stars 36 forks source link

"Cannot read property 'apply' of undefined" Error on Test Connection with MySQL datastore #1718

Open mattparkerls opened 8 years ago

mattparkerls commented 8 years ago

I have deployed Strongloop to Openshift using this cartridge.

However when I try and test a MySQL datastore connection, I receive this:

Oops! Something is wrong
Cannot read property 'apply' of undefined
Message: Cannot read property 'apply' of undefined

If I try and discover models, it's the same error message.

I have been double-checking my package.json file and any dependencies and I can't seem locate what may be the issue.

package.json:

{
  "name": "loopback-app",
  "version": "0.0.0",
  "main": "server/server.js",
  "scripts": {
    "start": "slc run",
    "pretest": "jshint ."
  },
  "dependencies": {
    "compression": "^1.0.3",
    "errorhandler": "^1.1.1",
    "loopback": "^2.0.0",
    "loopback-boot": "^2.0.0",
    "loopback-connector-mysql": "^2.2.0",
    "loopback-datasource-juggler": "^2.0.0",
    "serve-favicon": "^2.0.1"
  },
  "optionalDependencies": {
    "loopback-explorer": "^1.1.0"
  }
}

And double checking from running slc -v:

strongloop v6.0.0 (node v4.2.6)
├── strong-arc@1.8.8 (fb756f2)
├── strong-build@2.1.0 (47dd24a)
├── strong-deploy@3.1.2 (be6180a)
├── strong-mesh-models@8.1.0 (62e539b)
├── strong-pm@5.1.0 (eb2f788)
├── strong-registry@1.1.5 (f46e58f)
├── strong-start@1.3.2 (1327018)
├─┬ strong-supervisor@3.3.1 (1e39220)
│ └── strong-agent@2.0.2 (4ea7ee9)
├── generator-loopback@1.14.0 (4a7aae3)
├── node-inspector@0.7.4
└── nodefly-register@0.3.3