You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error when I use Meteor.user() inside withTracker functions, only on server.
Error running template: Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.
Having the same problem, on the server as well, in both with and without HMR. I have Meteor methods calling some async functions and that seems to break.
So right after writing my previous comment I remembered having faced a similar issue in the past, before I used this package. It seems that using babel to transpile your code for the current version of node breaks Fibers somehow. If you change it back to node 7, it works.
So in other words I had this as part of my babel config:
I get this error when I use
Meteor.user()
insidewithTracker
functions, only on server.It happens at this line in the
react-meteor-data
package: https://github.com/meteor/react-packages/blob/796a075a4bbb36212e6a74c9f3576b119d31c474/packages/react-meteor-data/ReactMeteorData.jsx#L34Meteor.bindEnvironment can't be used because it eats up the return values.
Any ideas for solving this?
The text was updated successfully, but these errors were encountered: