Skip to content

Error: Meteor code must always run within a Fiber #66

Open
@s7dhansh

Description

@s7dhansh

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. 

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#L34

Meteor.bindEnvironment can't be used because it eats up the return values.

Any ideas for solving this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions