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

Custom Theme components cannot be resolved #2126

Open
MordragT opened this issue Mar 22, 2025 · 0 comments
Open

Custom Theme components cannot be resolved #2126

MordragT opened this issue Mar 22, 2025 · 0 comments

Comments

@MordragT
Copy link

Describe the bug

I recently tried to create a theme for slidev (https://github.com/MordragT/slidev-theme-fh-aachen),
and layouts work, but components not.

When I specify the theme using a full path /home/tom/Desktop/Mordrag/slidev-theme-fh-aachen,
then the components load fine.

When using a full path but like so: ~/Desktop/Mordrag/slidev-theme-fh-aachen, they do not resolve succesfully anymore.

When installing the theme as a git dependency using pnpm (I didn't want to publish it at this stage):

  "dependencies": {
    "@slidev/types": "^51.4.0",
    "slidev-theme-fh-aachen": "github:mordragt/slidev-theme-fh-aachen"
  },

Components fail to resolve once again.

Minimal reproduction

Steps to reproduce the behavior:

  1. Create a new slidev project
  2. Add my theme as git dependency
  3. Define the theme and run
  4. See the warnings in the console

Environment

  • Slidev version: 51.4.0
  • Browser: Chromium, Zen Browser both up to date
  • OS: NixOS Unstable

If do not have slidev installed globally.

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

1 participant