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

Error with icon while exporting to PDF #1742

Open
Mrbibi38 opened this issue Jul 8, 2024 · 3 comments
Open

Error with icon while exporting to PDF #1742

Mrbibi38 opened this issue Jul 8, 2024 · 3 comments

Comments

@Mrbibi38
Copy link

Mrbibi38 commented Jul 8, 2024

Describe the bug

Cannot export an icon into the PDF. The icon is from @iconify-json/logos.
Maybe this is not a bug and this is incompatible but didn't find any notice about that.

Minimal reproduction
Steps to reproduce the behavior:

  1. Create a slide
  2. Include an icons from from @iconify-json/logos
    Example:
Zabbix Icon:
<logos-zabbix/>
  1. Go to the terminal and try to export as PDF
  2. Wait and get the following error:
slidev export .\tasksoftheweek.md
  ●■▲
  Slidev  v0.49.16 (global)

  theme       @slidev/theme-apple-basic
  css engine  unocss
  entry       C:\Users\johndoe\OneDrive - John\Documents\slidev\tasksoftheweek.md
  ◆ rendering...09:28:40 [vite] Pre-transform error: Icon `logos/zabbix` not found
  ■ rendering...09:28:40 [vite] Internal server error: Icon `logos/zabbix` not found
      at generateComponent (file:///C:/Users/johndoe/AppData/Roaming/npm/node_modules/@slidev/cli/node_modules/unplugin)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async LoadPluginContext.load (file:///C:/Users/johndoe/AppData/Roaming/npm/node_modules/@slidev/cli/node_modul)
      at async PluginContainer.load (file:///C:/Users/johndoe/AppData/Roaming/npm/node_modules/@slidev/cli/node_modules)
      at async loadAndTransform (file:///C:/Users/johndoe/AppData/Roaming/npm/node_modules/@slidev/cli/node_modules/vit)
      at async viteTransformMiddleware (file:///C:/Users/johndoe/AppData/Roaming/npm/node_modules/@slidev/cli/node_modu)
  ✓ exported to ./tasksoftheweek-export.pdf

Environment

  • Slidev version: 0.49.16
  • Browser: None
  • OS: Windows 11
@KermanX
Copy link
Member

KermanX commented Jul 8, 2024

How about creating a project via npm create slidev@latest, install @iconify-json/logos locally, and then run npm run export?

@Mrbibi38
Copy link
Author

Mrbibi38 commented Jul 8, 2024

Same issue... :/

@vorburger
Copy link
Contributor

#1872 is possibly related, but even simpler, without (something like) <logos-zabbix/> @KermanX @Mrbibi38 FYI.

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

No branches or pull requests

3 participants