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
[BUG] - Spinner in v2.3.0 It's currently unsupported to use "export *" in a client boundary #2735
Comments
Hey, you can't import components directly from
|
Oki thanks that helps, it is weird because it was working before... |
I want to be clear, these changes are awesome! Super glad to see all of this. But...This is a pretty big breaking change for many codebases, might be worth communicating this more widely or offering a codemod to easily update to individual imports. Across a large codebase, this is a lot of work to resolve. Took me a while to convert global imports to individual imports safely, so maybe worth some comms/messaging somewhere. |
I had similar issue This line of code caused it I solved it by exports all function from this package manually EDITin 2.3.3v bug still remains |
this currenly it is not working because the directory structure have changed and it gives a module not found error in my case was the card and card header. |
Please upgrade to the latest version. Now the react package will automatically include the use client; directive #2758 The advantage you have by using individual imports, is that not all components are client component, we have some of then that can run only on the server e.g. https://nextui.org/docs/components/badge |
I had the latest version 2.3.2 and was getting an error from next-flight-loader, which stated that even on client components, it is not allowed. I have downgraded my next UI back to 2.2.10 and that solved the problem |
@DannelCu please create a new issue with a minimal reproducible environment. |
for the next version you should import like this: |
NextUI Version
2.3.0
Describe the bug
Cannot use Spinner anymore in NextJS 14.2.1 build fails with error:
./node_modules/@nextui-org/react-utils/dist/index.mjs Error: It's currently unsupported to use "export *" in a client boundary. Please use named exports instead.
Build worked in version 2.2.10
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Import Spinner in app router in any page.js and start build
import { Spinner } from '@nextui-org/react';
yarn build
Expected behavior
Spinner should work with SSR
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Opera
The text was updated successfully, but these errors were encountered: