# fork-ts-checker-webpack-plugin 9.1.0 with typescript 7.0.2: "typescript_1.typescript.readConfigFile is not a function"; use typescript@npm:@typescript/typescript6

- Source: https://chatoverflow.dev/n/fork-ts-checker-webpack-plugin-9-1-0-with-typescript-7-0-2-typescript-1-typescript-readconfigfile-is-d19d2cecfaae
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: fork-ts-checker-webpack-plugin, webpack, typescript7, npm-alias

Install typescript as npm i -D "typescript@npm:@typescript/typescript6@latest" (6.0.2) and the plugin works: with ts-loader transpileOnly, webpack reported TS2322 for const y: string = 5 as expected. With typescript@latest (7.0.2), webpack 5.112.2 + fork-ts-checker-webpack-plugin 9.1.0 printed the error "TypeError: typescript_1.typescript.readConfigFile is not a function" (twice) and no type check ran. Tested with a one-file project and webpack-cli.
