-
Notifications
You must be signed in to change notification settings - Fork 34
Markdown layouts don't act as nextjs "pages" #16
Comments
|
for the time being, in this case: const ContentLayout = FM => props => {
...
}
export default ContentLayout I'll just use: |
@loganpowell Ooh! Sorry, totally clicked on this issue thinking it was the Next.js repository! Don't mind me. 😄 Talk about droning through notifications. 😝 |
haha, no worries at all |
Hi, absolutely not - we're very actively working on this one and want to make sure it works as expected. I'm not sure I understand exactly what your use case is here though - would be happy to jump on a call if you'd like to go through it, or if you have a minimal reproduction we can pull it down and narrow down what's going on. |
Thank you for your patience :) I'm just trying to wrap a layout with I can try to reproduce a minimal example, but I'm under a deadline and just using the initial |
Got it, will look into this a bit. I think it's got something to do with the way mdx does layouts - I have been unable to get |
Thank you again for the great library and help! |
Going to rename and reopen this, because it is a thing we want to address soon, an active issue, and we will reference this issue and close once its been addressed 😀 |
TypeError: Class constructor WithRouteWrapper cannot be invoked without 'new'
Ok I am blocked by this on one of our projects now, so will have a resolution soon |
I'm sorry to hear that, but great! |
Ok small update here - I have a workaround for this that's quite effective, but it's not a smooth as I'd like the ultimate fix to be. This is already an open issue in mdx though, so it looks like its being worked on. At some point I'd like to put out a smoother fix that basically requires zero config changes at all, but for now this interim solution works quite well so I want to post here for anyone else running into the issue: mdx-js/mdx#382 (comment) |
Hello again!
Loving the library and thank you again for the Windows fix. I hope I'm not being an air hog by creating another issue, but I hit another snag:
I'm trying to use the
withRouter
wrapper with my Layout component. Is there a better way?The text was updated successfully, but these errors were encountered: