Aws-sam-cli: Unable to import module error when running "http://127.0.0.1:3000/hello" from tutorial

Created on 10 Jul 2018  路  2Comments  路  Source: aws/aws-sam-cli

https://imgur.com/a/YZ2sPjW

I tried the URL "http://127.0.0.1:3000/hello" and got a "No data" message on the URL page. This was the error message I got in the terminal. How do I fix this?

Most helpful comment

Wanted to update this, incase anyone else ran into this issue. The README appeared as blank in sublime when I opened it (not sure why), so I didn't know that I had to run NPM install. I randomly opened it again after a couple hears of headaches and reliazed that the README in fact did contain instructions on how to proceed. If anyone else has this issue with "importing module 'app' ", run NPM INSTALL in the directory that contains app.js.

All 2 comments

Wanted to update this, incase anyone else ran into this issue. The README appeared as blank in sublime when I opened it (not sure why), so I didn't know that I had to run NPM install. I randomly opened it again after a couple hears of headaches and reliazed that the README in fact did contain instructions on how to proceed. If anyone else has this issue with "importing module 'app' ", run NPM INSTALL in the directory that contains app.js.

I have this issue while running on python3.7

Was this page helpful?
0 / 5 - 0 ratings