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

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

Closed
shershen08 opened this issue Jan 20, 2024 · 3 comments
Closed
Labels

Comments

@shershen08
Copy link

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: npm@9.9.2
  • Builder: -
  • User Config: ssr, extends, modules, hooks, colorMode, ui, fontMetrics, googleFonts, routeRules, devtools, typescript, content, nitro
  • Runtime Modules: @nuxt/content@2.10.0, @nuxt/ui@2.12.0, @nuxthq/studio@1.0.6, @nuxtjs/fontaine@^0.4.1, @nuxtjs/google-fonts@3.1.1, nuxt-og-image@3.0.0-rc.27, @nuxtjs/tailwindcss@6.9.0
  • 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

@farnabaz
Copy link
Member

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

Copy link

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 github-actions bot added the Stale label Jul 19, 2024
Copy link

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants