Closed SimonScholz closed 11 months ago
I have also encountered this issue, and from the build logs, I suspect that the error occurred during the process of the Critters plugin's work. After upgrading the Critters plugin to the latest version, I faced this problem. However, when I reverted the version back to 0.0.18, the issue no longer occurred. I have not delved deeper into the root cause of the problem, but I hope this information might be helpful to you.
Thanks a lot. That did the trick.
Describe the bug
I just forked the vitesse template and simply added these 3 lines to the
about.md
file in thesrc/pages
folder.https://github.com/SimonScholz/vitesse/blob/0067d54543b99da70e0a8c2776b0a318436b9c03/src/pages/about.md?plain=1#L22
While running
pnpm dev
is just fine and everything is rendered as expected, doing apnpm build
results into this failure:It seems that the actual error lies in having
<<
two times here:Somehow using
<
in my kotlin/java code snippets, which may consist of many<
break the vite-ssg build.Using
<
and>
does not work because they are rendered as is, which is not the result I was hoping for. I've even tried to configure Markdown withhtml=true
in thevite.config.ts
file :And also tried to escape the
<
somehow, but all that did not work for me.The interesting thing is that running
pnpm dev
just runs fine and renders everything as expected.Support or advice would be highly appreciated here. In case Markdown rendering does not work I would have to switch back to using React JS with Gatsby for rendering my code snippets in Markdown :-(
Reproduction
https://github.com/SimonScholz/vitesse
System Info
Used Package Manager
pnpm
Validations