I am currently using this guide to perform an easy search on weather.
http://matteodem.github.io/meteor-easy-search/
It generates an error like the following:
TypeError: MinimongoEngine is not a constructor
This is how I am implementing the search:
Packages installed:
matteodem:easy-search
easy:search
easysearch:components
easysearch:core
client/searchBox.html
<template name="searchBox">
{{> EasySearch.Input index=playersIndex }}
<ul>
{{#EasySearch.Each index=playersIndex }}
<li>Name of the player: {{name}}</li>
{{/EasySearch.Each}}
</ul>
</template>
client/searchBox.js
// On Client
Template.searchBox.helpers({
playersIndex: () => PlayersIndex,
})
lib/collection.js
import { Index, MinimongoEngine } from 'meteor/easy:search'
// On Client and Server
const Players = new Mongo.Collection('players')
const PlayersIndex = new Index({
collection: Players,
fields: ['name'],
engine: new MinimongoEngine()
})
Some idea of how to solve it, I’m new to meteor, so any help would be appreciated. If I’m doing something wrong, please help.