Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Commit

Permalink
fix(main): specify .default property when importing RedBox
Browse files Browse the repository at this point in the history
Fix #888
  • Loading branch information
werelax committed Jun 30, 2016
1 parent a8cef93 commit 20c8078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let render = (routerKey = null) => {
if (__DEV__ && module.hot) {
const renderApp = render
const renderError = (error) => {
const RedBox = require('redbox-react')
const RedBox = require('redbox-react').default

ReactDOM.render(<RedBox error={error} />, MOUNT_NODE)
}
Expand Down

0 comments on commit 20c8078

Please # to comment.