-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot find module 'app' when using "hello world typescript" example #7262
Comments
Hi @doteric, Thanks for raising this issue. Could you provide some more details such as what options you selected when running the sam init command? I haven't been able to reproduce your exact error so this would help us with that |
Hey @sidhujus
That's that suit you or you would like something more? |
Hi @doteric |
Hey @YamaguchiGen-TR , |
Hi @doteric |
Hi, I unfortunately can't reproduce this with the node20 Typescript provided template. I ran:
Here is the system I tried it on:
Docker version:
Can you copy and paste the contents of the |
Hello @lucashuy
Just a side node - I use Rancher Desktop for docker. |
Thanks! I switched over to Rancher Desktop and can now reproduce the problem, we're making progress! It looks like this may have something to do with how both flavours deal with bind mounts. SAM CLI passes the source directory as a folder that is on the Windows machine (eg. This is a little weird, since the actual path on WSL is |
Hello @lucashuy Big thanks for picking this up, apart from using something other than Rancher Desktop is there some decent workaround that can be applied right now? Or any ETA on some fix? I'm wondering if I should change to something other than Rancher Desktop (for example Docker Desktop) or just wait for some fix. Really appreciate your work btw, thank you 💪 |
Sorry @doteric for the late reply, I don't have any particularly elegant workaround right now, but the workaround I do have involves using SAM CLI inside of WSL2, instead of on Windows.
This can be a potential workaround for now while our team prioritizes a fix/the best way forward. |
Hello 👋
I'm setting up AWS SAM locally on Windows and I've stumbled upon a problem with running a lambda locally. I've used the "Hello World TypeScript" as an example and haven't changed almost anything and I'm receiving the following error:
Full debug log:
I have ran the
sam build
function before running the function, the build was successfully created.Would appreciate guidance as I did not have time to fully investigate this just yet, didn't bother especially that this might be a known problem. The path to the "module" which is
'app'
does not seem correct though 🤔The text was updated successfully, but these errors were encountered: