Failed to resolve package "@shikijs/monaco"
Describe the bug
when i start to export the slides.md in pptx ,it is happened
Minimal reproduction
Steps to reproduce the behavior:
- Go to execute this command: slidev export slides.md --format pptx
- 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
Is slidev export pptx compatible with @ shikijs/monaco?
node:v22.7.0 npm : 10.8.2
Theoretically, this should not error. Have you tried deleting node_modules and re-install the package?