slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.24k stars 1.35k forks source link

Failed to resolve package "@shikijs/monaco" #1851

Closed lovingcodesk closed 1 week ago

lovingcodesk commented 2 months ago

Describe the bug

when i start to export the slides.md in pptx ,it is happened

Minimal reproduction

Steps to reproduce the behavior:

  1. Go to execute this command: slidev export slides.md --format pptx
  2. See the error:

    ●■▲ Slidev v0.49.29 (global)

    theme @slidev/theme-seriph css engine unocss entry /Users/san/tools/slidev/slides.md ▲ rendering...12:10:04 AM [vite] Internal server error: Failed to resolve package "@shikijs/monaco" at resolveImportPath (file:///opt/anaconda3/envs/slidev/lib/node_modules/@slidev/cli/dist/chunk-HOVIRHCR.js:36:11) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async resolveImportUrl (file:///opt/anaconda3/envs/slidev/lib/node_modules/@slidev/cli/dist/chunk-HOVIRHCR.js:17) ✓ exported to ./slides-export.pptx at async LoadPluginContext.load (file:///opt/anaconda3/envs/slidev/lib/node_modules/@slidev/cli/dist/chunk-YP37OZJY)

Environment

lovingcodesk commented 2 months ago

Is slidev export pptx compatible with @ shikijs/monaco?

lovingcodesk commented 2 months ago

node:v22.7.0 npm : 10.8.2

KermanX commented 2 months ago

Theoretically, this should not error. Have you tried deleting node_modules and re-install the package?