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

Esbuild 0.19 + SAM build = Esbuild Failed #3593

Closed
alexis-ehg opened this issue Jan 15, 2024 · 1 comment
Closed

Esbuild 0.19 + SAM build = Esbuild Failed #3593

alexis-ehg opened this issue Jan 15, 2024 · 1 comment

Comments

@alexis-ehg
Copy link

When I run SAM build for lambdas using the latest version of esbuild, it generates these errors

using version 0.18.20 works perfectly

|  Running NodejsNpmEsbuildBuilder:EsbuildBundle                                  
|  Running NodejsNpmEsbuildBuilder:EsbuildBundle                                  
| 
| Build Failed
| Error: NodejsNpmEsbuildBuilder:EsbuildBundle - Esbuild Failed: ✘ [ERROR] Expected ";" but found "License"
| 
|     node_modules/@graphql-typed-document-node/core/LICENSE:1:4:
|       1 │ MIT License
|         │     ~~~~~~~
|         ╵     ;
| 
| ✘ [ERROR] No loader is configured for ".eslintignore" files: .eslintignore
| 
|     lambda.js:33:35:
|       33 │     const functionModule = require('./' + lambda.functionName);
|          ╵                                    ~~~~
| 
| ✘ [ERROR] No loader is configured for ".md" files: node_modules/asynckit/README.md
| 
|     lambda.js:33:35:
|       33 │     const functionModule = require('./' + lambda.functionName);
|          ╵                                    ~~~~
| 
| ✘ [ERROR] Expected ";" but found "MIT"
| 
|     node_modules/asynckit/LICENSE:1:4:
|       1 │ The MIT License (MIT)
|         │     ~~~
|         ╵     ;
| 
| ✘ [ERROR] No loader is configured for ".map" files: node_modules/axios/dist/axios.map
| 
|     lambda.js:33:35:
|       33 │     const functionModule = require('./' + lambda.functionName);
|          ╵                                    ~~~~
| 
| ✘ [ERROR] No loader is configured for ".md" files: node_modules/axios/SECURITY.md
| 
|     lambda.js:33:35:
|       33 │     const functionModule = require('./' + lambda.functionName);
|          ╵                                    ~~~~
| 
| 0 of 1 warning and 6 of 243 errors shown (disable the message limit with --log-limit=0) 
@evanw
Copy link
Owner

evanw commented Jan 15, 2024

I'm closing this issue as the issue reporting instructions were not followed and there's nothing I can do with it.

@evanw evanw closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
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

2 participants