99x / serverless-dynamodb-client

Serverless Dynamodb Client to automatically switch between AWS and Local instances
MIT License
74 stars 19 forks source link

TypeError: Plugin is not a constructor #11

Open sdrissi opened 6 years ago

sdrissi commented 6 years ago

Hey there!

I get a "TypeError: Plugin is not a constructor" when trying to run serverless offline start with serverless-dynamodb-client plugin enabled.

Version I used:

On top of that I use typescript.

Thanks for the help

Dimwest commented 4 years ago

Experiencing the exact same issue, here is the environment info:

 Operating System:          darwin
 Node Version:              13.6.0
 Framework Version:         1.64.0
 Plugin Version:            3.4.0
 SDK Version:               2.3.0
 Components Core Version:   1.1.2
 Components CLI Version:    1.4.0

Any news on that ?

Bennyelg commented 4 years ago

Same over here..

polson commented 4 years ago

Also seeing this

polson commented 4 years ago

It means one of your plugins in the serverless.yml plugins section is not actually a serverless plugin

stewartnoll commented 4 years ago

Ran the mistake of thinking this was a first-class serverless plugin and when I configured it under plugins in serverless.yml I got the same error (non-typescript project). Not sure if that's what folks in here are experiencing but this is merely a library that abstracts away the localhost config differences btwn running locally vs in AWS that is mentioned here. Removing from the list of plugins in serverless.yml and just using it like any other npm package solved the issue on my end.