wheatjs / vite-plugin-vue-type-imports

Import types in Vue SFC for defineProps
223 stars 18 forks source link

Nuxt 3 remove warnings `Cannot find type` for TypeScript build-in types like Array, Error, Record #34

Closed mrauhu closed 2 years ago

mrauhu commented 2 years ago

Hello @wheatjs.

Mention of same behavior: https://github.com/wheatjs/vite-plugin-vue-type-imports/issues/32. Source of bug: https://github.com/wheatjs/vite-plugin-vue-type-imports/pull/22.

After update this package to the latest version (0.2.2) got warnings about TypeScript build-in types, like:

 WARN  [vite-plugin-vue-type-imports] WARN: Cannot find type: Error 
 WARN  [vite-plugin-vue-type-imports] WARN: Cannot find type: Array
 WARN  [vite-plugin-vue-type-imports] WARN: Cannot find type: Record

image

Is there a way to remove warnings?

Best wishes, Sergey.

Zolyn commented 2 years ago

It seems to be noisy, I will move it to debug level in the next release.

Zolyn commented 2 years ago

Try v0.2.3

mrauhu commented 2 years ago

Thank you.