Closed juancampuzano closed 8 months ago
can you remove the .svg
extension in the import?
Now I got this error:
error TS2307: Cannot find module '~icons/unplugin/close-chip' or its corresponding type declarations.
5 import UnpluginCloseChip from "~icons/unplugin/close-chip";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
do you have typescript as dev dependency installed?
provide a minimal reproduction
Yes I have typescript: "typescript": "~4.9.4",
.
I will create the reproduction env.
did you install unplugin icons dev dependency?
Yes, I did. I ran this: yarn add -D unplugin-icons
. The application is running ok but the only problem is the validation with vue-tsc
@userquin The problem was that I was using a very old version of the library "vue-tsc": "~1.0.24"
I am using "vue-tsc": "~1.8.27"
and now is working fine.
Describe the bug
I have configured
vue-tsc
in a vue project and after running the validation I got an error.How to reproduce the issue
<script setup lang="ts">
section<template>
sectiontsconfig.json
yarn check-types
I am getting the following error.Reproduction
Vue error when using vue-tsc
System Info
Used Package Manager
yarn
Validations