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

lodash dependency for twilio #622

Closed
copremesis opened this issue Jun 20, 2021 · 3 comments
Closed

lodash dependency for twilio #622

copremesis opened this issue Jun 20, 2021 · 3 comments

Comments

@copremesis
Copy link

    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'lodash'\nRequire stack:\n- /var/task/node_modules/twilio/lib/webhooks/webhooks.js\n- /var/task/node_modules/twilio/lib/index.js\n- /var/task/handler.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
    "trace": [
        "Runtime.ImportModuleError: Error: Cannot find module 'lodash'",
        "Require stack:",
        "- /var/task/node_modules/twilio/lib/webhooks/webhooks.js",
        "- /var/task/node_modules/twilio/lib/index.js",
        "- /var/task/handler.js",
        "- /var/runtime/UserFunction.js",
        "- /var/runtime/index.js",
        "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:999:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
        "    at Module.load (internal/modules/cjs/loader.js:863:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
        "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
        "    at internal/main/run_main_module.js:17:47"
    ]
}```

trying https://github.com/serverless/examples/tree/master/aws-node-twilio-send-text-message
but the README only describes how to setup the serverless portion
yet the nodeJS stuff is quite broken or not obviously documented 

@pgrzesik
Copy link
Contributor

Hello @copremesis 👋 Thanks for reporting. Unfortunately, that example is quite outdated, we'd be more than happy to accept a contribution that updates it 🙌

@slaytr
Copy link
Contributor

slaytr commented Jul 11, 2021

@pgrzesik PR created containing the fix for this at #633

@pgrzesik
Copy link
Contributor

Thank you @slaytr for fixing it 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants