serverless-crypt icon indicating copy to clipboard operation
serverless-crypt copied to clipboard

Cannot find module 'slscrypt'

Open Outc4sted opened this issue 8 years ago • 5 comments

When attempting to decrypt I get the error in the title

const slscrypt = require('slscrypt');

slscrypt.get($SECRET_NAME);

Outc4sted avatar Dec 22 '16 04:12 Outc4sted

I can temporarily fix it locally by using the node_modules path in the require() const slscrypt = require('./node_modules/serverless-crypt/dists/slscrypt');

Outc4sted avatar Dec 22 '16 04:12 Outc4sted

Any update on fixing this defect?

brianantonelli avatar Sep 19 '17 18:09 brianantonelli

I ended up pulling the function out of the npm files and put it in one of my own

Outc4sted avatar Sep 19 '17 20:09 Outc4sted

any update on this issue ?

arnaudbaali avatar Oct 18 '17 13:10 arnaudbaali

What is your package section of serverless.yml? If it had broad wildcard excludes, that was fixed in #13 which is in the v0.0.4 release. Tho I never tested that against nodejs, only python.

dschep avatar Oct 18 '17 13:10 dschep