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

Outdated readme or wrong export? #5

Open
danielkcz opened this issue May 31, 2019 · 0 comments
Open

Outdated readme or wrong export? #5

danielkcz opened this issue May 31, 2019 · 0 comments

Comments

@danielkcz
Copy link

danielkcz commented May 31, 2019

Library exports only a production boundary as default

export {default as ProductionErrorBoundary} from './ProductionErrorBoundary';

But README states that we should do the following to get development version which obviously cannot work.

ErrorBoundaryContainer = require('react-error-guard').DeveloperErrorBoundary;

I had to do ugly variant, but would be nice to correct it :)

const DeveloperErrorBoundary = require('react-error-guard/lib/DeveloperErrorBoundary').default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant