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

React is undefined #34

Open
repomaa opened this issue Oct 29, 2015 · 3 comments
Open

React is undefined #34

repomaa opened this issue Oct 29, 2015 · 3 comments

Comments

@repomaa
Copy link

repomaa commented Oct 29, 2015

Hello, I'm writing a local package with meteor-react-layout and i'm getting the error that React is not defined.
Here's my package.js:

// ...

Package.onUse(function(api) {
    api.versionsFrom('1.2.1');
    api.use('ecmascript');
    api.use('react');
    api.use('kadira:flow-router');
    api.use('kadira:react-layout');
    api.use('meteorflux:dispatcher');
    api.use('meteorflux:appstate');
    api.use('fourseven:scss');
    api.use('meta:susy');
    api.use('accounts-password');

    api.addFiles([
        'client/login_layout.jsx',
        'client/layout_store.js',
        'client/routes.js'
    ], 'client');
});
@arunoda
Copy link
Contributor

arunoda commented Oct 30, 2015

Can I see the stack trace of the error or a sample app?

@repomaa
Copy link
Author

repomaa commented Oct 30, 2015

sure. here's the stack trace:

(anonymous function)    @   kadira_react-layout.js:49
fire    @   jquery.js:3151
self.fireWith   @   jquery.js:3263
jQuery.extend.ready @   jquery.js:3475
completed   @   jquery.js:3506

And here's a sample app: http://p.jreinert.com/GXvrUc/

@arunoda
Copy link
Contributor

arunoda commented Oct 30, 2015

Seems like you are using a older version of react-layout. Always mention the version number.

like api.use('kadira:react-layout@1.5.0');

Do it for all the non-meteor packages.

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