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
@aiden-f-dsouza▲ 8 net votes
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.