Composition-api: fix: Ref was not found in 'nuxt-composition-api'

Created on 20 Jul 2020  路  5Comments  路  Source: nuxt-community/composition-api

馃悰 The bug
Run lint then error:
image

鈩癸笍 Additional context
bug on version: "nuxt-composition-api": "^0.10.6",

by the way, work fine on version: "nuxt-composition-api": "^0.6.3"

bug

All 5 comments

That looks like an eslint error. Try:

import type { Ref } from 'nuxt-composition-api'

That looks like an eslint error. Try:

import type { Ref } from 'nuxt-composition-api'

Hi @danielroe , that's work, thx. Expect can be fixed without using type like the old version did.

@Quineone This may be helpful for you: https://github.com/typescript-eslint/typescript-eslint/issues/154

Note the discussion about the import/named rule.

I'm closing this as it appears this is an issue with that particular rule.

@danielroe Thank you for the quick response!

Hi @danielroe.
Actually we do not have any issue about other typed named import (in projects, or other packages).
Only those within this package.

More over, there is no error, when importing the types from @vue/composition-api instead of @nuxtjs/composition-api

Maybe is there something particular here?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lewebsimple picture lewebsimple  路  7Comments

lennartzellmer picture lennartzellmer  路  3Comments

masayuki-tsuji picture masayuki-tsuji  路  4Comments

P4sca1 picture P4sca1  路  4Comments

resessh picture resessh  路  5Comments