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

Error: Cannot find module on lift #2

Closed
cludden opened this issue Jul 22, 2015 · 1 comment
Closed

Error: Cannot find module on lift #2

cludden opened this issue Jul 22, 2015 · 1 comment

Comments

@cludden
Copy link

cludden commented Jul 22, 2015

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?

@mastilver
Copy link
Owner

just released version 0.3.1 to fix this issue
Let me know if you run into any other issues!

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

2 participants