question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-lambda-nodejs] NodejsFunction broken on v1.48.0

See original GitHub issue

The NodejsFunction construct is broken on v1.48.0 because it wrongly searches for the closest package.json.

Error Log

@parcel/core: Could not find target with name "cdk-lambda"

Environment

  • CLI Version : 1.48.0
  • Framework Version: 1.48.0
  • Node.js Version: all
  • OS : all
  • Language (Version): all

Other

Already working on a PR with fix.


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kpeters-cbsicommented, Jul 31, 2020

For anyone who comes here from Google like I did - I had this problem because I didn’t have a Git repo set up (I was testing something out). When I did git init that fixed the problem. See https://github.com/jogold/aws-cdk/blob/master/packages/@aws-cdk/aws-lambda-nodejs/lib/bundling.ts#L107 .

1reaction
tgandrewscommented, Jul 2, 2020

Thanks for this and your work on CDK. It’s so much better than the alternatives.

On Thu, 2 Jul 2020 at 19:18, Jonathan Goldwasser notifications@github.com wrote:

@jogold https://github.com/jogold when is this likely to be released?

https://github.com/aws/aws-cdk/releases/tag/v1.49.0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aws/aws-cdk/issues/8837#issuecomment-653154286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMFJZSY3GF4IOS5R3JHELRZTFORANCNFSM4ONQHCFA .

– tomandrews.co.uk

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Lambda function errors in Node.js
This page describes how to view Lambda function invocation errors for the Node.js runtime using the Lambda console and the AWS CLI.
Read more >
Homepage - AWS Lambda Powertools for TypeScript
A suite of utilities for AWS Lambda functions running on the Node.js runtime, to ease adopting best practices such as tracing, structured logging,...
Read more >
Upgrading to Serverless Framework v3
Service configuration. The default Lambda runtime has changed from NodeJS 12 to NodeJS 14, given this is now the default runtime recommended by...
Read more >
Monitoring AWS Lambda Node.js Functions - Elastic
The Node.js APM Agent can be used with AWS Lambda to monitor the execution of your AWS Lambda functions. Quick Startedit. To get...
Read more >
@aws-cdk/aws-lambda-nodejs | Yarn - Package Manager
Node.js Function. The NodejsFunction construct creates a Lambda function with automatic transpiling and bundling of TypeScript or Javascript code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found