sanity-io / sanity-plugin-mux-input

An input component that integrates Sanity Studio with MUX.com video encoding/hosting service.
https://mux.com
MIT License
51 stars 55 forks source link

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

Open tristantbg opened 3 months ago

tristantbg commented 3 months ago

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 commented 3 months ago

Hey @tristantbg 👋 Could you give this a shot? https://github.com/sanity-io/sanity-plugin-mux-input/releases/tag/v2.3.6

tristantbg commented 3 months ago

Thanks a lot ! It works again ;)