Urigo / meteor-rxjs

Exposing Mongo Cursor as RxJS Observable
MIT License
120 stars 38 forks source link

Mongo is not defined #204

Closed marholdm closed 6 years ago

marholdm commented 6 years ago

Hi ! I'm having the error 'Mongo is not defined'

import { MongoObservable } from 'meteor-rxjs';

const Boxes = new MongoObservable.Collection('boxes');

Someone got the same issue ?

weini01 commented 6 years ago

Hi, I also have a Problem with mongo since the last update (update from 0.4.7 to 0.4.13) I´m on Meteor 1.7.0.1 with mongo 1.5.0 and rxjs 6.1.0. and got the following Error:

`... /dev_bundle/server-lib/node_modules/fibers/future.js:280 throw(ex);

Error: Cannot find module 'meteor/mongo' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at subscribeEvents (node_modules/meteor-rxjs/dist/bundles/index.umd.js:2:102) at Object. (... /node_modules/meteor-rxjs/dist/bundles/index.umd.js:5:2) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at npmRequire (.../.meteor/local/build/programs/server/npm-require.js:133:10) at Module.useNode (packages/modules-runtime.js:699:18) at index.umd.js (packages/modules.js:272:8) at fileEvaluate (packages/modules-runtime.js:339:7) at require (packages/modules-runtime.js:238:16) at images.collection.js (both/images/images.collection.ts:1:1) at fileEvaluate (packages/modules-runtime.js:339:7) at require (packages/modules-runtime.js:238:16) at index.js (both/images/index.ts:3:1) `

vnavarroingenia commented 6 years ago

Hi,

I have the same issue using 1.7.0.1

mrz5018 commented 6 years ago

I'm having the same issue, without upgrading to 1.7.0.1. I am thinking that it popped up when I updated angular to V6.x and rxjs to V6.x. Not sure it it's either of those things, but I don't think it's specifically Meteor 1.7.

EDIT I reverted back to 0.4.11 and the issue went away, so it still may be an interaction with angular or rxjs, but it's something that was introduced in 0.4.12 or 0.4.13

ymchun commented 6 years ago

I have this problem since version 0.4.12

ardatan commented 6 years ago

Could you update your meteor-rxjs to 0.4.14?

vnavarroingenia commented 6 years ago

Hi @ardatan, It works now for me using Meteor 1.7.0.1 and Angular 6. Thanks!

ardatan commented 6 years ago

Thank you for your collaboration! I'm closing this issue then.