Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite / vue-tsc compiler error #155

Open
theoephraim opened this issue Jan 28, 2022 · 2 comments
Open

vite / vue-tsc compiler error #155

theoephraim opened this issue Jan 28, 2022 · 2 comments

Comments

@theoephraim
Copy link
Contributor

Not exactly sure when this started, but I'm getting an error when running vue-tsc (TS typechecking for vue) related to this plugin

running vue-tsc --noEmit gives me the following error

node_modules/unplugin-icons/dist/vite.d.ts:4:60 - error TS2304: Cannot find name 'Plugin$1'.

declare const _default: (options?: Options | undefined) => Plugin$1;
                                                           ~~~~~~~~

My tsconfig:

{
  "compilerOptions": {
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "node",
    "strict": true,
    "jsx": "preserve",
    "sourceMap": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "allowUnreachableCode": true,
    "lib": ["ESNext", "dom"],
    "types": [
      "node",
      "vite/client",
      "unplugin-icons/types/vue"
    ],
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"],
    }
  },
  "include": [
    "**/*.ts",
    "**/*.js",
    "src/**/*.tsx",
    "src/**/*.vue"
  ]
}
@trathailoi
Copy link

trathailoi commented Feb 14, 2022

The same to me. Any solution on this one guys ?

@hugazo
Copy link

hugazo commented Apr 6, 2022

Same here, i've managed to isolate the issue to Typescript 4.5+, it goes away when you activate the compilerOptions.skipLibCheck: true in your tsconfig file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants