To use the Collections API, install the @wix/stores package using npm or Yarn:
@wix/stores
npm install @wix/stores
or
yarn add @wix/stores
Then import { collections } from @wix/stores:
{ collections }
import { collections } from "@wix/stores";