App Router DX Problem: Can't export metadata
from layout using Redux or UI wrappers
#82434
Answered
by
icyJoseph
programmerbanna
asked this question in
App Router
-
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Aug 7, 2025
Replies: 1 comment 9 replies
-
Why do you have |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well it has to be the fonts. When I export a font and import it into a
use client
module, directly or indirectly, I get:Notice the error stack, I guess your version doesn't have that much detail, this was made with
15.4.5
If you had used Typescript, this wouldn't even build (before having metadata in layout), because layout and pages, are type checked for their exports - only a limited set of APIs can be exported from these files. You shouldn't really be sharing exports from layout/pages into other modules.