Replies: 3 comments
-
You cannot just import |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@WuChenDi I will suggest you to go through the official contentlayer docs. Start with this page if you have already set up most stuff. |
Beta Was this translation helpful? Give feedback.
-
I am using contentlayer and MDX, and I am testing based on the example template shadcn/next-contentlayer.
However, I have encountered an issue and I'm not sure how to correctly import MDX components in .tsx files.
code:
![image](https://private-user-images.githubusercontent.com/31385662/253780692-1e632537-0d1e-4c05-a6e5-10583992966a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTA1MTEsIm5iZiI6MTcyMTU5MDIxMSwicGF0aCI6Ii8zMTM4NTY2Mi8yNTM3ODA2OTItMWU2MzI1MzctMGQxZS00YzA1LWE2ZTUtMTA1ODM5OTI5NjZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDE5MzAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyN2IxNzgyYWJiNTA0Yzc5ZWM5OTU2OGRiY2FhYzBhNDUzNDhlMWU3MGU1ZjFlNWEzYjYwMGQ0NmNkYzhiNzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.evXG46wLd_qRHX3Kf9EGi6so6ngRbAet7BhVbhUonFI)
Beta Was this translation helpful? Give feedback.
All reactions