{"id":22891,"library":"vite-plugin-ts-types","title":"vite-plugin-ts-types","description":"Vite plugin that runs TypeScript type checking in a separate process, reporting errors in the console and overlay. Current stable version appears to be 1.0.0 but the package has very limited information and appears to be from the legacy '@ice/app' monorepo. This plugin provides type checking during development and builds, similar to vite-plugin-checker or fork-ts-checker-webpack-plugin. However, it has minimal documentation and is not actively maintained; the latest release notes are from a separate monorepo (ice) and the actual plugin code is not well described. It likely integrates with Vite's dev server and build process to perform TypeScript diagnostics.","status":"deprecated","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/alibaba/ice/tree/master/packages/vite-plugin-ts-checker","tags":["javascript"],"install":[{"cmd":"npm install vite-plugin-ts-types","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-ts-types","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-ts-types","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Vite plugin, requires Vite >=2.0","package":"vite","optional":false}],"imports":[{"note":"ESM-only package; CJS require will fail.","wrong":"const tsChecker = require('vite-plugin-ts-types')","symbol":"default","correct":"import tsChecker from 'vite-plugin-ts-types'"},{"note":"Type import to avoid runtime import.","wrong":"import { TsCheckerOptions } from 'vite-plugin-ts-types'","symbol":"TsCheckerOptions","correct":"import type { TsCheckerOptions } from 'vite-plugin-ts-types'"},{"note":"CJS workaround since the package is ESM.","wrong":"const tsChecker = require('vite-plugin-ts-types')","symbol":"default (CommonJS workaround)","correct":"const tsChecker = require('vite-plugin-ts-types').default"}],"quickstart":{"code":"import { defineConfig } from 'vite';\nimport tsChecker from 'vite-plugin-ts-types';\n\nexport default defineConfig({\n  plugins: [tsChecker({\n    // Enable type checking only in build\n    enableBuild: true,\n  })],\n});","lang":"typescript","description":"Shows basic setup with build-only type checking using the plugin."},"warnings":[{"fix":"Replace with vite-plugin-checker.","message":"Package is deprecated and no longer maintained. Use vite-plugin-checker or fork-ts-checker-webpack-plugin instead.","severity":"deprecated","affected_versions":"*"},{"fix":"Use an alternative plugin.","message":"The plugin may not work with Vite 5+ due to internal API changes.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Refer to source code for other options.","message":"Documentation is sparse; the only config option is enableBuild (boolean).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use import statement or dynamic import().","cause":"Package is ESM-only, used with require()","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module"},{"fix":"Use require('vite-plugin-ts-types').default or switch to import.","cause":"Using CJS require without .default","error":"TypeError: tsChecker is not a function"},{"fix":"Run npm install vite-plugin-ts-types -D","cause":"Package not installed or not in node_modules","error":"Cannot find module 'vite-plugin-ts-types'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}