Hidden dependency on underscore.js
domq opened this issue · comments
Running the master branch of meteor-rxjs
in a Meteor 1.9.3 project (that doesn't explicitly use the underscore
package) results in the following server-side stack trace:
W20191107-17:14:36.031(1)? (STDERR) ReferenceError: _ is not defined
W20191107-17:14:36.031(1)? (STDERR) at new ObservableCursor (.../node_modules/meteor-rxjs/dist/bundles/index.umd.js:98:13)
W20191107-17:14:36.032(1)? (STDERR) at Function.ObservableCursor.create (.../node_modules/meteor-rxjs/dist/bundles/index.umd.js:113:20)
W20191107-17:14:36.032(1)? (STDERR) at Collection.find (.../node_modules/meteor-rxjs/dist/bundles/index.umd.js:426:41)
[...]
Adding underscore
to .meteor/packages
makes the problem go away.
It is worth noting that Meteor doesn't use underscore anymore these days.