Closed kanlanc closed 4 years ago
it's related to https://github.com/mgonto/restangular/issues/1298
https://stackoverflow.com/a/34922709/5836034
one of your installed packages is using an older version of lodash v3 and .contains
has been removed from version 4 to use just .includes
Find which package is using an older version of lodash, then see if they have a newer release with a fix to use the latest version
probably this one "@sailshq/lodash": "^3.10.3",
It turns out this particular npm package doesnt intend to update to lodash 4 at all from their README. Should I change the globals to lodash 4, will this solve the problem
or is there a way I can tell this package to use lodash 3
in fact sails internally uses lodash 3, but this doesn't prevent you to use v4 (which is needed for sails-hook-swagger-generator)
the only thing is that the code of the ./api/hooks/custom/index.js (that has been generated by sails new) is using .contains instead of .includes.
just correct that line replacing ```.containsby
_.includes```
it should then be ok
cf https://sailsjs.com/documentation/reference/configuration/sails-config-globals
This is the error I am getting if I try sails lift after installing this mod. Please note that the app lifts normally when the hook is not installed