nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.11k stars 624 forks source link

shikiji/dist/index.mjs does not provide an export named 'addClassToHast' #2515

Closed shershen08 closed 1 month ago

shershen08 commented 9 months ago

Environment


Reproduction

"@nuxt/content": "2.10.0",

Describe the bug

Error when running nuxt dev

SyntaxError: The requested module 'node_modules/shikiji/dist/index.mjs' does not provide an export named 'addClassToHast'

full log:

[9:59:05 AM]  ERROR  [worker reload] [worker init] The requested module 'FULL_PATH_HERE/docs/node_modules/shikiji/dist/index.mjs' does not provide an export named 'addClassToHast'

  import { addClassToHast, getHighlighter, loadWasm } from 'node_modules/shikiji/dist/index.mjs';
  ^^^^^^^^^^^^^^
  SyntaxError: The requested module 'node_modules/shikiji/dist/index.mjs' does not provide an export named 'addClassToHast'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Additional context

No response

Logs

No response

farnabaz commented 8 months ago

Do you mind providing a simple reproduction using https://nuxt.new/s/content or a github repo?

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 30 days with no activity.