Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createWasmOnigEngine deprecated in Shiki 3.0.0 #348

Open
lancewilhelm opened this issue Feb 24, 2025 · 0 comments
Open

createWasmOnigEngine deprecated in Shiki 3.0.0 #348

lancewilhelm opened this issue Feb 24, 2025 · 0 comments

Comments

@lancewilhelm
Copy link

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 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!

@lancewilhelm lancewilhelm changed the title createWasmOnigEngine deprecated in Shiki 3.0.0 createWasmOnigEngine deprecated in Shiki 3.0.0 Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant