Closed Callmoon closed 7 years ago
You have to add the meteor packages that you want to add into your .packages
file or use meteor add
.
@matteodem thanks for the reply - in the implemented example was easysearch:elasticsearch
already added
I've additionally added easy:search
package via meteor add
. Still the same results (look below at updated packages
file from .meteor
folder).
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base@1.0.4 # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
mongo@1.1.14 # The database Meteor supports right now
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.1.1 # Meteor's client-side reactive programming library
standard-minifier-css@1.3.2 # CSS minifier run for production mode
standard-minifier-js@1.2.1 # JS minifier run for production mode
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers.
angular2-compilers
practicalmeteor:mocha
xolvio:cleaner
hwillson:stub-collections
dispatch:mocha-phantomjs
shell-server@0.2.1
accounts-password
anti:fake
tmeasday:publish-counts
check
email
jalik:ufs
jalik:ufs-gridfs
mickaelfm:vermongo
easy:search
easysearch:elasticsearch
Does it maybe has to do something with the missing typings for the packages that I'm not able to import it?
I figured it out - anything was installed very well but the compiler, the editor (Atom with Typescript package) and the console gave me an error because of the missing typings.
Just added the following bad minimal type definitions to my typings.d.ts
to connect successfully to the running elasticsearch server.
declare module 'meteor/easysearch:core' {
import { Mongo } from "meteor/mongo";
interface config {
collection: any,
fields: string[],
engine: any
}
class Index {
constructor(config: config);
search(searchDefinition: string, options?: object): Mongo.Cursor<any>;
}
}
declare module 'meteor/easysearch:elasticsearch' {
interface params {
body: any
}
class ElasticSearchEngine {
constructor(obj: params);
}
}
Hello together,
my goal is to use elasticsearch inside the meteor-angular2.0 example by Urigo (see link below).
I try to implement the easysearch:elasticsearch atmosphere package from https://atmospherejs.com/easysearch/elasticsearch# into my existing project which is based on https://github.com/Urigo/meteor-angular2.0-socially .
After I used
meteor add easysearch:elasticsearch
I receive always theCannot find module error
if I try to implement it (serverside/clientside/both - doesnt matter). Here my code of implementation in theboth/collections/cases.collections.ts
file:My
.meteor/packages
file has following content:Additionally (if it helps) here my
package.json
: