slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Using monorepo to develop a theme locally, writing the theme path in md can render normally, but writing the theme name will not work

Open htharoldht opened this issue 2 years ago • 0 comments

Describe the bug Using monorepo to develop a theme locally, writing the theme path in md can render normally, but writing the theme name will not work

To Reproduce Build monorepo with pnpm, there are demo, themeslidev-theme-xx under packages, the former is slidev manuscript, the latter is self-developed theme image

If it is specified with "dependencies": { "slidev-theme-xx": "workspace:*" } under the demo, it will prompt

The theme "slidev-theme-xx" was not found in after running the `slidev demo` your project, do you want to install it now?

And if the theme is published and the dependencies are installed outside the monorepo to rebuild the slidev document, it can be rendered normally

Desktop (please complete the following information):

  • OS: win11
  • Browser: edge
  • Slidev version: 0.35.4

Is this issue caused by pnpm? Maybe this function can't resolve the workspace dependencies, but I can't be sure and fix it.

htharoldht avatar Aug 13 '22 13:08 htharoldht