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

SyntaxError: Named export 'useErrorBoundary' not found. The requested module 'use-error-boundary' is a CommonJS module #368

Open
tristantbg opened this issue Jun 12, 2024 · 2 comments

Comments

@tristantbg
Copy link

tristantbg commented Jun 12, 2024

I'm getting this error when installing the plugin :

SyntaxError: Named export 'useErrorBoundary' not found. The requested module 'use-error-boundary' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'use-error-boundary';
const { useErrorBoundary } = pkg;
Capture d’écran 2024-06-12 à 10 10 28
@stipsan
Copy link
Member

stipsan commented Jun 12, 2024

@tristantbg
Copy link
Author

Thanks a lot ! It works again ;)

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

2 participants