Closed digital-codes closed 1 year ago
You should use the plugin when using its composables.
How? I followed the instructions from the plugin config page. It works in dev mode. The plugin is part of the default theme. I have just no idea in which file I should make changes? You have an example?
Here, the plugin do not register any instance during ssr, so some workaround is:
const zoom = __VUEPRESS_SSR__? null : useMediumZoom()
Description
Vue carousel-like component with button to select one of different images via v-if. Zoomable state is set via useMediumZoom and zoom.refresh. I think I followed the instructions in the current docs. Works in dev mode but fails during build:
The plugin config file contains the provide instruction:
Maybe this config file is called in dev mode but not in build mode?
Reproduction
https://github.com/digital-codes/vp2test/tree/main
Used Package Manager
npm
System Info