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

Build Error in nextjs #2755

Closed
daphnesaj opened this issue Apr 17, 2024 · 3 comments
Closed

Build Error in nextjs #2755

daphnesaj opened this issue Apr 17, 2024 · 3 comments
Labels
🐛 Type: Bug Something isn't working

Comments

@daphnesaj
Copy link

NextUI Version

14.2.1

Describe the bug

./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.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. I added the button component and implemented it and it broke my code,.
  2. I rerun the project and then this happened.

Expected behavior

I cant run the project because of this

Screenshots or Videos

image

Operating System Version

Windows

Browser

Chrome

@daphnesaj daphnesaj added the 🐛 Type: Bug Something isn't working label Apr 17, 2024
Copy link

linear bot commented Apr 17, 2024

@wingkwong
Copy link
Member

See this comment

@Arek1997
Copy link

I had similar issue
./node_modules/.pnpm/@nextui-org+react-utils@2.0.11_react@18.2.0/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.

This line of code caused it
export * from "@nextui-org/react-rsc-utils";

I solved it by exports all function from this package manually
export { DOMEventNames, DOMPropNames, filterDOMProps, getValidChildren, pickChildren, renderFn } from "@nextui-org/react-rsc-utils";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants