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
If I replace the highlighted HTML with markdown like:
*blah blah*
Then the blog crashes with these error messages:
11:01:51 AM [vite] Pre-transform error: Cannot read properties of undefined (reading 'length')
11:01:51 AM [vite] Pre-transform error: Cannot read properties of undefined (reading 'length') (x2)
11:01:53 AM [vite] Error when evaluating SSR module /@fs/Users/derek/code/zerodev/docs/node_modules/vocs/_lib/app/components/BlogPosts.js: failed to import "virtual:blog"
|- TypeError: Cannot read properties of undefined (reading 'length')
at Context.load (file:///Users/derek/code/zerodev/docs/node_modules/vocs/_lib/vite/vite.config.js.timestamp-1715439706999-8250bec8c8718.mjs:1843:27)
at async Object.load (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:64034:32)
at async loadAndTransform (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:49665:24)
at async instantiateModule (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:50759:10)
file:///Users/derek/code/zerodev/docs/node_modules/vocs/_lib/vite/vite.config.js.timestamp-1715439706999-8250bec8c8718.mjs:1843
if (description.length > 200)
^
TypeError: Cannot read properties of undefined (reading 'length')
at Context.load (file:///Users/derek/code/zerodev/docs/node_modules/vocs/_lib/vite/vite.config.js.timestamp-1715439706999-8250bec8c8718.mjs:1843:27)
at async Object.load (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:64034:32)
at async loadAndTransform (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:49665:24)
at async instantiateModule (file:///Users/derek/code/zerodev/docs/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:50759:10)
Right now the blog crashes if you use italic markdown like
*blah blah*
at the beginning of a blog post.Currently I'm working around this issue using HTML: https://github.com/zerodevapp/docs/blob/acf8364d75912f345648d114a6a0f1b39d279e5e/docs/pages/blog/4337-and-3074-disagreements.mdx?plain=1#L12C1-L15C6
If I replace the highlighted HTML with markdown like:
Then the blog crashes with these error messages:
My workaround is not perfect because it breaks the preview: https://docs.zerodev.app/blog
The text was updated successfully, but these errors were encountered: