slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Failed to resolve package "@shikijs/monaco"

Open lovingcodesk opened this issue 1 year ago • 3 comments

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

  • Slidev version: v0.49.29 (global)
  • Browser: chrome
  • OS: mac sonoma 14.6.1

lovingcodesk avatar Sep 02 '24 16:09 lovingcodesk

Is slidev export pptx compatible with @ shikijs/monaco?

lovingcodesk avatar Sep 02 '24 16:09 lovingcodesk

node:v22.7.0 npm : 10.8.2

lovingcodesk avatar Sep 02 '24 16:09 lovingcodesk

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

kermanx avatar Sep 05 '24 15:09 kermanx