To use the Collections API, install the @wix/portfolio package using npm or Yarn:
@wix/portfolio
or
Then import { collections } from @wix/portfolio:
{ collections }