vite-plugin-theme-preprocessor
vite-plugin-theme-preprocessor copied to clipboard
toggleTheme for typescript
toggleTheme don't work in ts. I add this:
declare module "@zougt/vite-plugin-theme-preprocessor/dist/browser-utils" {
export function toggleTheme(options: {
scopeName?: string;
customLinkHref?: (href: string) => string;
});
export function addClassNameToHtmlTag(options: {
scopeName?: string;
multipleScopeVars: { scopeName: string; path?: string }[];
});
}
but not work and when use toggle show me error in console:
please help for fix it
when build project worked prefect but in development with typescript mode show this error multipleScopeVars is null or undefined. please add support typescript
How did you fix the bug @hmz22
I have this errors yet
@
How did you fix the bug @hmz22
I have this errors yet add
themePreprocessorPlugin, themePreprocessorHmrPlugin
to vite plugins