Replies: 1 comment
-
Additionally, I invested several hours in configuring various layouts according to the Pages directory name. This was a similar problem. The page.default.layout was missing when I attempted to establish the page's default layout. Here is the code that I find to be effective:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working in a project that involves using Layouts between different pages as shown the following code (this works ok):
The problem is when I want to enable the dynamic import like this documentation and I need to change my code a bit but then the Layouts didn't work anymore.
With some research mainly in forums I finished with this code:
And in my pages I needed to do this, because the
page.default.layout = <Layout children={page} />
didn't work:So my question is: is there a way to work with dynamic/lazy imports to include the Layout? in the research it seems obvious with the code examples but is not working for me...
Beta Was this translation helpful? Give feedback.
All reactions