You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: It's currently unsupported to use "export *" in a client boundary. Please use named exports instead.
Current vs. Expected behavior
The library uses 'use client' in a file that re-exports all exports from another file. This fails when it's in an installed module, but works in user code. You can verify this by flipping the comments in ./src/layout.tsx:
// import { Foo } from 'foo';import{Foo}from'./components';
As it works in user code, I'd expect this to work in library code as well.
Link to the code that reproduces this issue
https://stackblitz.com/edit/stackblitz-starters-mzcwat3y
To Reproduce
Open the codesandbox
Let it start up
Observe the error
Current vs. Expected behavior
The library uses
'use client'
in a file that re-exports all exports from another file. This fails when it's in an installed module, but works in user code. You can verify this by flipping the comments in./src/layout.tsx
:As it works in user code, I'd expect this to work in library code as well.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: