You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slidev fails to recognize the default theme in two scenarios when using pnpm:
When installed globally (pnpm add -g @slidev/cli @slidev/theme-default)
When installed locally but running on files outside the project folder (pnpm exec slidev /path/to/outside/test.md)
The same setups work correctly when using npm.
Minimal reproduction
Scenario 1 (Global):
Install slidev globally using pnpm:
pnpm add -g @slidev/cli @slidev/theme-default
Run slidev /path/to/file.md
Scenario 2 (Local):
Create a project with local slidev installation:
mkdir slidev-test
cd slidev-test
pnpm init
pnpm add @slidev/cli @slidev/theme-default
Run pnpm exec slidev /path/to/outside/test.md on a file outside the project directory
Both scenarios result in: "The theme "@slidev/theme-default" was not found in your project, do you want to install it now?" Environment
Slidev version: ^0.50.0-beta.10
Browser: N/A (CLI issue)
OS: Linux
The text was updated successfully, but these errors were encountered:
Describe the bug
Slidev fails to recognize the default theme in two scenarios when using pnpm:
pnpm add -g @slidev/cli @slidev/theme-default
)pnpm exec slidev /path/to/outside/test.md
)The same setups work correctly when using npm.
Minimal reproduction
Scenario 1 (Global):
slidev /path/to/file.md
Scenario 2 (Local):
mkdir slidev-test cd slidev-test pnpm init pnpm add @slidev/cli @slidev/theme-default
pnpm exec slidev /path/to/outside/test.md
on a file outside the project directoryBoth scenarios result in: "The theme "@slidev/theme-default" was not found in your project, do you want to install it now?"
Environment
The text was updated successfully, but these errors were encountered: