leafac / rehype-shiki

Rehype plugin to highlight code blocks with Shiki
MIT License
31 stars 3 forks source link

Build error in Vercel #4

Closed re-taro closed 2 years ago

re-taro commented 2 years ago

Hello, I have some question.

When I use your so awesome unified plugin.

I've encountered this error

UnhandledSchemeError: Reading from "node:assert/strict" is not handled by plugins (Unhandled scheme).

What should I do?

leafac commented 2 years ago

Hi @re-taro,

Thanks for reaching out.

@leafac/rehype-shiki only works with ESM, and it seems like your project hasn’t transitioned yet. You may learn how to do that here: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

In any case, it seems like you solved the problem already, given that you closed the issue. What was the solution?