storefront-ui icon indicating copy to clipboard operation
storefront-ui copied to clipboard

Getting this error "SyntaxError: Named export 'useClickAway' not found" in nextjs when using storefront ui

Open arimtiaz opened this issue 10 months ago • 0 comments

What is your question / Please describe your issue

I installed storefront ui and i am getting this error whenever i use any storefrontui block

SyntaxError: Named export 'useClickAway' not found. The requested module 'react-use' 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:

What package and version of StorefrontUI are you using?

latest one

What framework does your application use?

Nextjs

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

arimtiaz avatar Apr 21 '24 16:04 arimtiaz