You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Receiving a 'Cannot find module' error on lift. I believe this is due to 'require' being executed in the context of the node_modules/sails-hook-parametrized-policies directory.
I was able to fix by changing index.js#78 from
var factory = require(sails.config.paths.policyFactories + '/' + factoryName);
to
var factory = require(sails.config.appPath + sails.config.paths.policyFactories + '/' + factoryName);
Would you be willing to accept a PR with this change?
The text was updated successfully, but these errors were encountered:
Receiving a 'Cannot find module' error on lift. I believe this is due to 'require' being executed in the context of the node_modules/sails-hook-parametrized-policies directory.
I was able to fix by changing index.js#78 from
to
Would you be willing to accept a PR with this change?
The text was updated successfully, but these errors were encountered: