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
Hello, for some reason I've been getting build failures at './components/MDXComponents.tsx:4:10' when deploying to Vercel. I have already successfully deployed a branch to Vercel. I was adding framer motion to my project as I was trying to deploy I started getting the error.
this is the code from './components/MDXComponents.tsx'
/* eslint-disable react/display-name */importReactfrom'react'import{useMDXComponent}from'next-contentlayer/hooks'import{ComponentMap}from'mdx-bundler/client'// I've looked through the mdx-bundler/clint for "ComponentMap" I couldn't find it import{coreContent}from'@/lib/utils/contentlayer'importImagefrom'./Image'importCustomLinkfrom'./Link'importTOCInlinefrom'./TOCInline'importPrefrom'./Pre'importtype{Blog,Authors}from'contentlayer/generated'// I removed newsletter compinterfaceMDXLayout{layout: stringcontent: Blog|Authors[key: string]: unknown}interfaceWrapper{layout: string[key: string]: unknown}constWrapper=({ layout, content, ...rest}: MDXLayout)=>{constLayout=require(`../layouts/${layout}`).defaultreturn<Layoutcontent={content}{...rest}/>}// I'm guessing that this is for the type system?exportconstMDXComponents: ComponentMap={
Image,
TOCInline,a: CustomLink,pre: Pre,wrapper: Wrapper,}exportconstMDXLayoutRenderer=({ layout, content, ...rest}: MDXLayout)=>{constMDXLayout=useMDXComponent(content.body.code)constmainContent=coreContent(content)return<MDXLayoutlayout={layout}content={mainContent}components={MDXComponents}{...rest}/>}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, for some reason I've been getting build failures at './components/MDXComponents.tsx:4:10' when deploying to Vercel. I have already successfully deployed a branch to Vercel. I was adding framer motion to my project as I was trying to deploy I started getting the error.
this is the code from './components/MDXComponents.tsx'
Beta Was this translation helpful? Give feedback.
All reactions