Closed GNITOAHC closed 3 months ago
Hi, please try the new version https://github.com/yairEO/tagify/releases/tag/v4.26.5
Also, trying importing Tags
like so: import Tags from '@yaireo/tagify/react
@yairEO Seems like https://registry.yarnpkg.com/@types/yaireo__tagify/ is not updated
@Quared - I don't know this repository and it is not mine.
I advise not to use this @types
repo.
tagify version "@yaireo/tagify": "^4.27.5", Next 14 App router
while importing this,
import Tags from '@yaireo/tagify/react';
import '@yaireo/tagify/dist/tagify.css' // Tagify CSS
gives me error of
Prerequisites
I'm currently using NextJs.
To reproduce the error, simply
npx create-next-app@latest tagify --typescript --tailwind --eslint
and change theapp/page.tsx
to the following.This is my
package.json
Explanation
Compile successfully
Can't compile
Although the language server complain about the path error at
import Tags from '@yaireo/tagify/dist/react.tagify'
, but I think the true problem occurs on the compilation. (And I think@types/yaireo__tagify
isn't up to date) Because changing import path toimport Tags from '@yaireo/tagify/src/react.tagify'
will occur error as following which isn't a compiler error.