99x / serverless-react-boilerplate

A serverless react boilerplate for offline development
MIT License
260 stars 75 forks source link

offline doesn't create table. #39

Closed xkguq007 closed 7 years ago

xkguq007 commented 7 years ago

I follow exactly same, However it doesn't work. ''' Serverless: Failure: Error: ResourceNotFoundException: Cannot do operations on a non-existent table ''' this is why failed.

I searched a little,

''' custom: stage: ${opt:stage, self:provider.stage} dynamodb: start: migration: true migration: dir: offline/migrations table_prefix: ${self:custom.stage} writeEnvVars: REMOTE_STAGE: ${self:custom.stage} '''

that part, migration: true, migration: dir: offline/... is this really works?? Examples what I found are make table's information in serverless.yml using 'resource'

mjzone commented 7 years ago

@xkguq007 Boilerplate is updated to latest serverless version and serverless-dynamodb-local version.

xkguq007 commented 7 years ago

Oh, I forgot close this issue. @mjzone is right. I was used wrong version of serverless framework. thanks.