sst / sst.dev

Repo for sst.dev
https://sst.dev
MIT License
3.68k stars 445 forks source link

Update aws-sdk Install Location #715

Open itsRoze opened 1 year ago

itsRoze commented 1 year ago

In the "Add an API to Create a Note" section we are told to run the following command in the packages/functions/ folder:

npm install aws-sdk uuid

Later in the chapter, the import statement for aws-sdk is refactored into packages/core/src/dynamodb.js. This will cause an error of course, because aws-sdk wasn't installed in this directory.

We can install it in packages/core too, or maybe it's better to install it in the root directory (not sure?).

jayair commented 1 year ago

Oh that's a good point! It should be installed in the core directory.

I'll make a note for a future edit.