gbv / jskos-vue

A suite of components and plugins for Vue 3 related to JSKOS.
https://gbv.github.io/jskos-vue/
MIT License
0 stars 1 forks source link

Documentation: Pages are not correctly loaded when accessed on its own #1

Closed stefandesu closed 3 years ago

stefandesu commented 3 years ago

If you access a component documentation page directly, like https://gbv.github.io/jskos-vue/dev/components/ItemDetails.html, only the Vue example will be loaded, not the rest of the page. There is probably something misconfigured in the VitePress config.

It works when either accessed through the sidebar or via the previous/next navigation links.

stefandesu commented 3 years ago

Possibly related to https://github.com/vuejs/vitepress/issues/201.

stefandesu commented 3 years ago

Fixed by initializing cocoda-sdk registry in onMounted hook instead of directly in <script setup>.