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

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

Open
lovingcodesk opened this issue Sep 2, 2024 · 3 comments
Open

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

lovingcodesk opened this issue Sep 2, 2024 · 3 comments

Comments

@lovingcodesk
Copy link

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
Copy link
Author

Is slidev export pptx compatible with @ shikijs/monaco?

@lovingcodesk
Copy link
Author

node:v22.7.0
npm : 10.8.2

@KermanX
Copy link
Member

KermanX commented Sep 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants