Skip to content

Custom Theme components cannot be resolved #2126

Open
@MordragT

Description

@MordragT

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions