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
I ran into an error when building a page with Nuxt/content for Cloudflare pages. I believe this is because Shiki 3.0.0 depreciated createWasmOnigEngine in this commit.
Error msg: ERROR .nuxt/mdc-highlighter.mjs (2:9): "createWasmOnigEngine" is not exported by "node_modules/shiki/dist/engine-oniguruma.mjs", imported by ".nuxt/mdc-highlighter.mjs".
Recommended Fix:
I think changing createWasmOnigEngine to createOnigurumaEngine in relevant files. I believe these files are src/templates/mdc-highlighter.ts and test/utils/parser.ts, but I could be wrong since I am new to this repo.
I can try to make changes, test, and submit a pull request but it will take me a bit to figure all that out and make the time. I figure someone might be able to try this and test more quickly than I can.
Thanks!
The text was updated successfully, but these errors were encountered:
lancewilhelm
changed the title
createWasmOnigEngine deprecated in Shiki 3.0.0createWasmOnigEngine deprecated in Shiki 3.0.0
Feb 24, 2025
I ran into an error when building a page with Nuxt/content for Cloudflare pages. I believe this is because Shiki 3.0.0 depreciated
createWasmOnigEngine
in this commit.Error msg:
ERROR .nuxt/mdc-highlighter.mjs (2:9): "createWasmOnigEngine" is not exported by "node_modules/shiki/dist/engine-oniguruma.mjs", imported by ".nuxt/mdc-highlighter.mjs".
Relevant Packages:
"@nuxt/content": "^3.1.1"",
"shiki": "^3.0.0"
Recommended Fix:
I think changing
createWasmOnigEngine
tocreateOnigurumaEngine
in relevant files. I believe these files are src/templates/mdc-highlighter.ts and test/utils/parser.ts, but I could be wrong since I am new to this repo.I can try to make changes, test, and submit a pull request but it will take me a bit to figure all that out and make the time. I figure someone might be able to try this and test more quickly than I can.
Thanks!
The text was updated successfully, but these errors were encountered: