ReactLoadableSSRAddon is not a constructor
tatchi opened this issue · 3 comments
tatchi commented
ReactLoadableSSRAddon is not a constructor
I get an error while I try to import ReactLoadableSSRAddon
const ReactLoadableSSRAddon = require('react-loadable-ssr-addon')
Expected Behavior
No errors.
Current Behavior
Get the following error
ReactLoadableSSRAddon is not a constructor
Possible Solution
To make it work, I need to import it like that:
const ReactLoadableSSRAddon = require('react-loadable-ssr-addon').default
themgoncalves commented
@tatchi thanks for reporting, we will release a fix for that today.
themgoncalves commented
@tatchi fix for this issue was release in the v0.1.1
.
tatchi commented
@themgoncalves Yes I confirm it works 👍 Thanks :)