Open aleguern-azivko opened 1 month ago
Nevermind I found the issue, I had a samconfig.toml file in the project with parallel:true, and npm failed to build with this parameter. You can close the issue if it not considered a bug.
@aleguern-azivko thanks for raising issue and for finding the root cause. If build-in-source doesn't work well with parallel, I believe we should check and not allow them to be active at the same time. Marking it as a bug
To add a little bit of context, the bug occurred using typescript and npm, didn’t try other languages.
any progress on this @hawflau ?
When running sam build --build-in-source, the build process fails for the lambda function with an esbuild error. However, sam build without the --build-in-source flag works successfully.
Steps to reproduce: Set up a SAM project with multiple lambda functions using esbuild. Run sam build --build-in-source
Expected behavior: The build process should complete successfully for all lambda functions.
Actual behavior:
Environment: npm version: 10.5.0 SAM CLI version: 1.124.0 Operating System: macOS
Relevant configuration: SAM template snippet for the Contact function:
Relevant dependencies from package.json: