-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Description
We have an app that we ported over to this CLI tool and it works perfectly in development mode. However, if we run the build folder in a server (using pushstate-server
) we get:
Uncaught TypeError: Cannot read property 'props' of undefined
The component is simple:
class AuthLayout extends React.Component {
render() {
return (
<div id="auth-layout">
<div id="auth-content">
<this.props.views.content />
</div>
</div>
)
}
}
Like I said, this works great in dev mode. Why not in production?