Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor SSR: TypeError: (0 , _ultimatejsTrackerReact.TrackerReactMixin) is not a function #25

Open
lyquocnam opened this issue Sep 20, 2016 · 1 comment

Comments

@lyquocnam
Copy link

Hi author, i use meteor 1.4 with flowrouter ssr, webpack and babel with es7 features.
i tried to import TrackerReact, {TrackerReactMixin} from 'meteor/ultimatejs:tracker-react';
and use with:

@TrackerReactMixin
export default class Menu extends React.Component {
...
}

but error:
TypeError: (0 , _ultimatejsTrackerReact.TrackerReactMixin) is not a function

@wesleyfsmith
Copy link

Have you tried

export default class Menu extends TrackerReact(React.Component)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants