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

ReactLoadableSSRAddon is not a constructor #1

Closed
tatchi opened this issue Sep 19, 2018 · 3 comments
Closed

ReactLoadableSSRAddon is not a constructor #1

tatchi opened this issue Sep 19, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tatchi
Copy link

tatchi commented Sep 19, 2018

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 themgoncalves added the bug Something isn't working label Sep 19, 2018
@themgoncalves themgoncalves self-assigned this Sep 19, 2018
@themgoncalves
Copy link
Owner

@tatchi thanks for reporting, we will release a fix for that today.

@themgoncalves
Copy link
Owner

@tatchi fix for this issue was release in the v0.1.1.

@tatchi
Copy link
Author

tatchi commented Sep 19, 2018

@themgoncalves Yes I confirm it works 👍 Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants