I had the same error and it was caused by use of array instead of object in the components.This is how it should looks like
components: { RecentPostsWidget, PagesWidget}
This is how I had it when the error appeared:
components: [ RecentPostsWidget, PagesWidget]