Registry / testing / vite-plugin-ts-types

vite-plugin-ts-types

JSON →
library1.0.0jsnpmunverified

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.

npm install vite-plugin-ts-types
INSTALL
IMPORT
SIG · VITE-PLUGIN-TS-TYP
V
vite-plugin-ts-types
testingjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import tsChecker from 'vite-plugin-ts-types'
const tsChecker = require('vite-plugin-ts-types')
ESM-only package; CJS require will fail.
TsCheckerOptions
import type { TsCheckerOptions } from 'vite-plugin-ts-types'
import { TsCheckerOptions } from 'vite-plugin-ts-types'
Type import to avoid runtime import.
default (CommonJS workaround)
const tsChecker = require('vite-plugin-ts-types').default
const tsChecker = require('vite-plugin-ts-types')
CJS workaround since the package is ESM.

Shows basic setup with build-only type checking using the plugin.

import { defineConfig } from 'vite'; import tsChecker from 'vite-plugin-ts-types'; export default defineConfig({ plugins: [tsChecker({ // Enable type checking only in build enableBuild: true, })], });
Debug
Known issues
deprecatedPackage is deprecated and no longer maintained. Use vite-plugin-checker or fork-ts-checker-webpack-plugin instead.
fix
Replace with vite-plugin-checker.
affects: *
gotchaThe plugin may not work with Vite 5+ due to internal API changes.
fix
Use an alternative plugin.
affects: >=1.0.0
gotchaDocumentation is sparse; the only config option is enableBuild (boolean).
fix
Refer to source code for other options.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module
Package is ESM-only, used with require()
fix
Use import statement or dynamic import().
TypeError: tsChecker is not a function
Using CJS require without .default
fix
Use require('vite-plugin-ts-types').default or switch to import.
Cannot find module 'vite-plugin-ts-types'
Package not installed or not in node_modules
fix
Run npm install vite-plugin-ts-types -D
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
viterequiredVite plugin, requires Vite >=2.0
Agent activity
10 hits · last 30 days
node
10
Resources
vite-plugin-ts-types — npm install vite-plugin-ts-types · libregistry