-
Notifications
You must be signed in to change notification settings - Fork 276
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
cannot require ./lambda after clean installation. Check your dependencies. #132
Comments
this is not a bug, your lambda handler doesn't compile or you've not specified the correct lambda handler. check the error message at the bottom of the screen ( |
Had this exact issue. The problem for me was that "main": "lambda.js", |
I have the same problem. I've structured my project with a "src" and a "dist" directories, because I'm transpiling code. In my case the app.js file is not located a the root directory (ie: /var/folders/j4/1kkh8y8s6t33r75g56vtfqbh0000gp/T/606fe51e-4fc5-43ab-a6fc-ae458522f5fb/) but in the "dist" subdirectory. An extract from my package.json file:
|
It took me a bit to work this out, so I hope this can help someone else who has this issue.
|
I got the same issue, but my problem is that claudia is looking for I tried setting |
@ceefour What are the Claudia commands you’re using? Anything with |
In my case, i was getting this error because my lambda function file is listed in .gitignore. I hope this helps. This took me hours to find out, the folks at @Claudia.js should investigate this. |
Had the same issue. My setup was:
My fix was the following: In the app.js, I was missing "module.exports = app" at the very end of the file |
Had a similar error, figured if I try to require a file that is in |
annot find module 'C:\Users\Raphael\AppData\Local\Temp\51ad0ddd-0f56-4683-888e-8f68d4474064\lambda
I'm following the doc Deploying your first AWS Lambda function
The text was updated successfully, but these errors were encountered: