Fix build error: move changelog utility component out of pages directory#2011
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻
If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
|
✅ Synchronized metadata from Issue #2010:
|
The file src/pages/changelog/markdown.tsx was being treated as a page component by Docusaurus but lacked a default export, causing SSG to fail. Moved it to src/components/changelog/ReleaseBody.tsx and updated the import in index.tsx to fix the build error.
|
@copilot resolve the conflicts |
Conflicts are resolved in commit |
Description
Docusaurus SSG failed because
markdown.tsxinsrc/pages/changelog/lacked a default export. Files inpages/are treated as route components and require default exports; this file was a utility component, not a page.Type of Change
Changes Made
Relocated utility component:
src/pages/changelog/markdown.tsx→src/components/changelog/ReleaseBody.tsxsrc/pages/changelog/index.tsxto use new pathThis prevents Docusaurus from attempting to generate a
/changelog/markdownroute while preserving the component's functionality.Dependencies
No new dependencies or version changes.
Checklist
npm run buildand attached screenshot(s) in this PR.