Custom directive stops working after upgrading from Vue 3.4.21 to 3.4.22 - Nuxt