Replies: 3 comments
-
Can you provide a minimal, reproducible example using https://vitepress.new. That example works fine - https://stackblitz.com/edit/vite-kftjgn?file=docs/.vitepress/theme/index.ts,docs/.vitepress/theme/Layout.vue
this might be because you haven't installed the types - https://www.npmjs.com/package/@types/dom-view-transitions -- install that and reference it from global.d.ts/env.d.ts - you can just
Most likely your code is wrong. That browser supports view transition api. |
Beta Was this translation helpful? Give feedback.
-
@fr1g You can refer to my code, which might help you~ |
Beta Was this translation helpful? Give feedback.
-
thanks, I‘ll check it up later!Отправлено с iPhone16 июля 2024 г., в 23:50, shellRaining ***@***.***> написал(а):
@fr1g You can refer to my code, which might help you~
https://github.com/shellRaining/blog/blob/b751cdfac3d7b3ad205e0aac226c67d4f436628a/theme/Home/AppearanceSwitcher.vue
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
As my title, I just copied the example code from https://vitepress.dev/guide/extending-default-theme#on-appearance-toggle and this is not working on my project.
some hints:
If there's anything else required to seek and solve the problem, please let me know🙏
Beta Was this translation helpful? Give feedback.
All reactions