Closed codingwithdidem closed 2 years ago
Nice, I didn't even know it's possible to run this on Vercel.
I just did a local ls node_modules/highlight.js/styles
and I don't actually see any tokyo-night-dark.css
there, so probably you have a newer version of highlight.js
installed locally? Just checked and that color scheme is not in 11.3 but appears to be in 11.5.
It might be due to the fact that you use a different npm
version locally, or maybe Vercel uses npm ci
which installs exactly what's pinned in package-lock.json
. Vercel doesn't offer Node 16 yet, and Node 14 comes with npm 7 not 8. Maybe you can solve this though by deleting your package-lock.json
, then running npm install
again, and pushing the changes of the package-lock.
Locally converting from markdown to html and pdf works perfectly but when I deploy on Vercel Highlight css files are not found .
md-to-pdf -v
): 5.1.0I defined tokyo-night-dark as the highlight style and its working locally
but on production with vercel I got this error :