mn22nw / favovid

0 stars 2 forks source link

Render errors for Authpanel #1

Closed mn22nw closed 8 years ago

mn22nw commented 8 years ago

I'm trying to add a component for authentication (basically the same component as the one from reduxfirebasedemo ) and I can't seem to figure out what's messing up the render.

These are the most relevant files authpanel.js login.js

These are the two warnings I get:

"Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of Login "

"Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of Login."

fyrkant commented 8 years ago

I suspect that it’s the import {Authpanel} from '../authpanel'; in Login.js that’s the problem! Try import Authpanel from '../authpanel'; instead.