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
When configuring Slidev in vite.config.ts, the slidev configuration option is not recognized unless @slidev/types is explicitly referenced. This leads to an unexpected failure where slides do not render properly in Slidev, even though TypeScript types should not normally affect execution.
In some cases, Slidev recognizes slidev as a valid config option and works fine. Presumably due to caching or the order of package installation. However, in my case, when cloning the code into new dir, the slidev option is not recognized.
Run slidev, the slides are not rendered (empty screen, no error msg) Environment
Adding this line to the top of config file solves it:
/// <reference types="@slidev/types" />
Slidev version: v51.1.0
Browser: Arc
OS: macOS Sonoma
Runtime: Bun v1.2.2
Proposed solutions
Add a note to the documentation first.
Investigate the @slidev/types package. Some of the types should be exposed explicitly.
The text was updated successfully, but these errors were encountered:
Describe the bug
When configuring Slidev in vite.config.ts, the slidev configuration option is not recognized unless @slidev/types is explicitly referenced. This leads to an unexpected failure where slides do not render properly in Slidev, even though TypeScript types should not normally affect execution.
This appeared in the addon I'm working on and is now addressed: https://github.com/sghuang19/slidev-addon-prime.
Minimal reproduction
Steps to reproduce the behavior:
vite.config.ts
slidev
option is not recognized.slidev
, the slides are not rendered (empty screen, no error msg)Environment
/// <reference types="@slidev/types" />
Proposed solutions
@slidev/types
package. Some of the types should be exposed explicitly.The text was updated successfully, but these errors were encountered: