Lyokolux
Lyokolux
I spotted the following change in `tsconfig.json`: the path for pinia moved from `pinia/dist/pinia` to `node_modules/pinia/dist/pinia`
> Would you try clearing your `node_modules/.vite` and `node_modules/.cache` folders? It was something related to the cache because it is working now. Updating `@pinia/nuxt` does not clean this cache as...
> Still the same problem for me, I am not able to fix the problem with above solutions. What is your error?
> > I am also on rc-9. I have this config since rc-4 or 5 and didn't experience any issue > > I did like you told but same error...
I am currently using a directive to toggle tabIndex based on the focus. It avoids focus trap if two tabindex (one link and one with an attribute tabindex=1) are nested....
The current function in `./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js` is raising this error ```ts function ssrGetDirectiveProps(instance, dir, value, arg, modifiers = {}) { if (typeof dir !== 'function' && dir.getSSRProps) { return (dir.getSSRProps({ dir,...
It is compiled to ```ts __vite_ssr_import_30__.ssrGetDirectiveProps(_ctx, _directive_outside_focus_only)) ``` in `.nuxt/dist/server/server.mjs`. `_directive_outside_focus_only` is defined as ```ts const _directive_outside_focus_only = __vite_ssr_import_29__.resolveDirective("outside-focus-only"); ``` `getSSRProps` is also never called. However, this seems to be...
In the typescript type definition of `nuxtApp.vueApp.directive`, the `directive` function expects one parameter (a name only).
As stated by the vue documentation https://vuejs.org/guide/reusability/custom-directives.html#introduction, vue directives can be imported the same way composables are...
Turning it into a composable made it works: ```ts import { Directive } from "vue" type UseVOutsideFocusOnlyReturnType = { vOutsideFocusOnly: Directive } export const useVOutsideFocusOnly = (): UseVOutsideFocusOnlyReturnType => ({...