Skip to content

sean-clayton/sails-node-8-3-0

Repository files navigation

Instructions

  1. Start up the server by running node app.js
  2. Send a POST requests to /test/test
  3. Observe the failure: TypeError: Cannot convert undefined or null to object
  • This is referencing to sails.models in res.send(Object.keys(sails.models))

Making it work

  1. Go to Test1Service.js in api/services
  2. Comment out line 4
  3. Start up the server by running node app.js
  4. Send a POST requests to /test/test
  5. Observe the successful response: ["test"]

Theory

We believe that a service that requires in another service (which itself requires in sails) has changed in behavior with Node version 8.3.0. If you use NVM, run the same project in 8.2.0 and observe that even with Test1Service.js:4 uncommented, it still works (compared to the failing case with Node 8.3.0).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published