content
content copied to clipboard
shikiji/dist/index.mjs does not provide an export named 'addClassToHast'
Environment
- Operating System: Darwin
- Node Version: v18.16.0
- Nuxt Version: 3.9.1
- CLI Version: 3.10.0
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, extends, modules, hooks, colorMode, ui, fontMetrics, googleFonts, routeRules, devtools, typescript, content, nitro
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @nuxthq/[email protected], @nuxtjs/fontaine@^0.4.1, @nuxtjs/[email protected], [email protected], @nuxtjs/[email protected]
- Build Modules: -
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
Do you mind providing a simple reproduction using https://nuxt.new/s/content or a github repo?
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.
This issue was closed because it has been stalled for 30 days with no activity.