Skip to content

Typescript step debugging instructions for Amplify Gen 2 #7698

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

Open
jpangburn opened this issue Jun 3, 2024 · 0 comments
Open

Typescript step debugging instructions for Amplify Gen 2 #7698

jpangburn opened this issue Jun 3, 2024 · 0 comments
Labels
amplify/gen2 getting-started Issues with any of the Getting Started guides.

Comments

@jpangburn
Copy link
Contributor

Describe the content issue:
As TypeScript appears to be the preferred language for creating Lambda functions in AWS Amplify Gen 2, there ought to be some instructions about getting Lambda step debugging working in VSCode using the AWS Toolkit extension.

I've tried using both the quickstart template for Angular, and the manual installation methods. When you use the "Add Debug Configuration" button in VSCode, it creates a launch.json entry.
image
But whether you do this using the template, or the manual installation, it doesn't work. Using the template, it complains NodejsNpmBuilder:NpmPack - NPM Failed: npm error Invalid package, must have name and version.

Along with this, it would help if there was an explanation of the various tsconfig.json and package.json files in an Amplify project. It would be nice if there was something about "this one is for the front end code, this one is for the backend code". And maybe "we recommend using this bundler, or that setting because XYZ". And if you're using the AWS Toolkit, in some cases it seems to create an "aws-toolkit-tsconfig.json". We should know how this fits in as well so we can understand what settings we need to debug a project successfully, and how to make sure that our lambda deployments are optimized for size/efficiency.

URL page where content issue is:
https://docs.amplify.aws/angular/build-a-backend/functions/

@katieklein katieklein added amplify/gen2 getting-started Issues with any of the Getting Started guides. labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amplify/gen2 getting-started Issues with any of the Getting Started guides.
Projects
None yet
Development

No branches or pull requests

2 participants