Markdown Types with Portfolio Template #1451
Replies: 2 comments
|
Hey @iceColdChris! Thanks for this, and we were all just discussing this Portfolio template yesterday! The best place to get help with this is in our Discord, as these discussions are mostly for figuring out what to document or ideas about imrpoving our docs site. If you hop into https://astro.build/chat and ask in our dedicated support-threads channel then people will be looking for, and expecting to answer questions and give advice there! |
|
We're closing stale and outdated discussion to keep only the discussions still relevant to the current project version and/or the current docs state. If you think this is a mistake and that this discussion should remain open, please feel free to ping me, I'll take a second look at it. Thank your for your contribution! |
Uh oh!
There was an error while loading. Please reload this page.
Hey All,
I have been trying to migrate the Portfolio template over to using Typescript and TSX files, using the Typescript Documentation for guidance. Everything was going smoothly until I hit the files that loaded in the Markdown, I did read the section on importing markdown and have created my own type for the frontmatter variable that the portfolio uses.
I have the following types
and have edited the PortfolioPreview component like so
I even went ahead and edited the respective
Astro.globcalls to the followingindex.astro
projects.astro
When I run the build using the suggested build command in the typescript docs I am met with the following error

Any Tips would be appreciated!
Thanks
All reactions