"Cannot find module 'esbuild'" error when installing `aws-nodejs-typescript` template
See original GitHub issueAre you certain it’s a bug?
- Yes, it looks like a bug
Is the issue caused by a plugin?
- It is not a plugin issue
Are you using the latest version?
- Yes, I’m using the latest version
Is there an existing issue for this?
- I have searched existing issues, it hasn’t been reported yet
Issue description
When installing the aws-nodejs-typescript
template, after running yarn sls deploy
, I get the following error:
Cannot find module 'esbuild'
I simply fixed it by installing esbuild, but it hampers the dev experience.
Service configuration (serverless.yml) content
N/A
Command name and used flags
serverless deploy
Command output
N/A
Environment information
N/A
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
serverless AWS deployment fails because of esbuild
When I try to deploy my serverless application to AWS I'm running into this error: I'm using the aws-nodejs-typescript template. You installed ......
Read more >Cannot find module 'esbuild' when page crashes upon deploy
Hi all, I'm having a problem with my deploy on Netlify. My Next.js project builds and deploys perfectly. However, when I go to...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
I'm getting the error because I'm trying to import the freeCodeCamp icon from the react-icons package, which I don't have installed. import { ......
Read more >Building a serverless app with TypeScript - LogRocket Blog
Build a serverless application using TypeScript and the serverless framework, an open source CLI and hosted dashboard.
Read more >aws-nodejs-typescriptのテンプレートを使ってみる - Qiita
serverless.yml から serverless.ts になったことやビルドツールが webpack から esbuild になったことにより詰まったので、シェアできればと思い、まとめ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes I did use
sls create
but did runnpm install
as well 😃 I had to addesbuild
to devDependencies to make the deploy workI can confirm same issue.
My environment:
Steps to reproduce:
GIves:
Error: Cannot find module 'esbuild'
Additionally:
Running just
sls
gives me following options (note no typescript in the list):Interestingly, when selecting
Other
I getAdding
esbuild
topackage.json
obviously fixed the issue.