App router dynamic imports not working with parent server component #58238
Labels
bug
Issue was opened via the bug report template.
Lazy Loading
Related to Next.js Lazy Loading (e.g., `next/dynamic` or `React.lazy`).
Link to the code that reproduces this issue
https://github.com/tombryden/dynamic-import-bug
To Reproduce
Current vs. Expected behavior
Dynamic importing of a component only works when the parent component is a client component. Perhaps some additional documentation (e.g. suggesting wrapping with a client component to import dynamically) is needed to clear up confusion if this is expected behaviour. I believe you should be ok to close #49454 as this looks to be caused by this.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, Dynamic imports (next/dynamic)
Additional context
No response
The text was updated successfully, but these errors were encountered: