tagify icon indicating copy to clipboard operation
tagify copied to clipboard

Does Tagify support Vue3 and to what extent?

Open trickMin opened this issue 1 year ago • 3 comments

Prerequisites

  • [x] I am running the latest version
  • [x] I checked the documentation and found no answer
  • [x] I checked to make sure that this issue has not already been filed

I am considering using a tag input box component for development in Vue3 and found that Tagify meets my expectations. The documentation mentions support for Vue, but it doesn't specify whether it fully supports Vue3. Does Tagify fully support Vue3? Are there any specific requirements for Vue3 version support, such as version requirements or component limitations?

trickMin avatar Aug 11 '23 02:08 trickMin

I'm trying to import the latest version of tagify via npm in my Vue 3 project but I'm getting an error (I noticed a related issue in closed status, but my project doesn't have a dependency on gulp-terser and I'm using the latest version of tagify).

Here's the import statement:

import Tagify from '@yaireo/tagify'

Here's the error message:

./node_modules/@yaireo/tagify/dist/tagify.min.js 26:8981 Module parse failed: Unexpected token (26:8981) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | */ | > !function(t,e)

trickMin avatar Aug 11 '23 02:08 trickMin

Well, I don't know Vue anymore... I used to know a bit, a few years ago but forgot completely.

Back when I knew it, I somehow scrapped a solution to support Vue, but I think you don't really need much for Vue at all, since you can initialize Tagify on your own within your Vue component

yairEO avatar Aug 17 '23 13:08 yairEO

Why would you need a dependency for gulp-terser?

It's an internal package which generates the output from Tagify's source-code.

How did you even get this error? what were the steps?

yairEO avatar Aug 17 '23 13:08 yairEO