vue-input-facade icon indicating copy to clipboard operation
vue-input-facade copied to clipboard

Vue3 Support

Open dougalg opened this issue 3 years ago • 10 comments

Hi, I am wondering if there are any plans for vue3 support for this package? Thanks a lot

dougalg avatar Dec 07 '21 07:12 dougalg

Hello, the current project I am using this on doesn’t have any plans to upgrade to vue 3 yet. It’s not in my immediate schedule but eventually I will.

RonaldJerez avatar Dec 12 '21 20:12 RonaldJerez

What about now? 👀

andreasvirkus avatar Jun 29 '22 15:06 andreasvirkus

What i did was changing the methods inside directive.js to the new ones for Vue3, until this lib supports Vue3

kevinmelo avatar Jul 05 '22 16:07 kevinmelo

I honestly don't have a need for it yet, which is why I haven't prioritize it, but I did look into it briefly last year and stopped because styleguidest did not support vue 3 yet, and the documentations page requires it. I created an issue to see if anyone wanted to contribute and help us move to storybook which does support vue 3.

I'm more than open to contributions, even under beta if anyone wants to create a PR with the necessary changes for vue3.

RonaldJerez avatar Jul 12 '22 19:07 RonaldJerez

:tada: This issue has been resolved in version 3.0.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 05 '22 02:10 github-actions[bot]

Can you mention about vue 3 support in readme as well?

ankurk91 avatar Oct 12 '22 06:10 ankurk91

"vue-input-facade": "version": "3.0.0-beta.2" "vue": "version": "3.2.47"

Vue3 seems like it wanted below, particularly filter was throwing errors. Vue3 main.js

import { createApp } from 'vue';
const app = createApp(App);

import { InputFacade, facade, filter } from 'vue-input-facade';
app.component('InputFacade', InputFacade);
app.directive('facade', facade);
app.config.globalProperties.$filters = {
  facade: filter
};

iyerusad avatar Apr 11 '23 07:04 iyerusad

Ah yes, filters are not supported in vue3. That needs to be removed.

RonaldJerez avatar Apr 11 '23 13:04 RonaldJerez

:tada: This issue has been resolved in version 3.0.0-beta.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jul 12 '23 17:07 github-actions[bot]

When using v3 and nuxt 3.6.5 i get the following error:

Named export 'facade' not found. The requested module 'vue-input-facade' is a CommonJS module, which may not support all module.exports as named exports.

I created a pugin as follows:

import { facade } from 'vue-input-facade'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.directive('facade', facade)
})

simonmaass avatar Aug 24 '23 13:08 simonmaass

:tada: This issue has been resolved in version 3.0.0-beta.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jan 04 '24 21:01 github-actions[bot]