sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

Update aws-sdk Install Location

Open itsRoze opened this issue 2 years ago • 1 comments

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?).

itsRoze avatar May 06 '23 18:05 itsRoze

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

I'll make a note for a future edit.

jayair avatar May 09 '23 22:05 jayair