content icon indicating copy to clipboard operation
content copied to clipboard

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

Open shershen08 opened this issue 1 year ago • 1 comments

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

shershen08 avatar Jan 20 '24 09:01 shershen08

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

farnabaz avatar Jan 22 '24 09:01 farnabaz

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] avatar Jul 19 '24 02:07 github-actions[bot]

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

github-actions[bot] avatar Aug 19 '24 01:08 github-actions[bot]