TypeStrong / fork-ts-checker-webpack-plugin

Webpack plugin that runs typescript type checker on a separate process.
MIT License
1.96k stars 239 forks source link

class IssueWebpackError extends webpack_1.default.WebpackError when run webpack build #834

Open vitminakov opened 11 months ago

vitminakov commented 11 months ago

Current behavior

I'm trying to upgrade from webpack 3 to version 5 (and also from ts-loader 4 to 9) and encountering this error:

@lerna-project: [webpack-cli] TypeError: Class extends value undefined is not a constructor or null @lerna-project: at Object.<anonymous> (/project/node_modules/fork-ts-checker-webpack-plugin/lib/issue/issue-webpack-error.js:13:51) @lerna-project: at Module._compile (internal/modules/cjs/loader.js:1158:30) @lerna-project: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) @lerna-project: at Module.load (internal/modules/cjs/loader.js:1002:32) @lerna-project: at Function.Module._load (internal/modules/cjs/loader.js:901:14) @lerna-project: at Module.require (internal/modules/cjs/loader.js:1044:19) @lerna-project: at require (internal/modules/cjs/helpers.js:77:18) @lerna-project: at Object.<anonymous> (project/node_modules/fork-ts-checker-webpack-plugin/lib/hooks/tap-after-compile-to-get-issues.js:14:31) @lerna-project: at Module._compile (internal/modules/cjs/loader.js:1158:30) @lerna-project: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)

The README.md states that for Node 12, version 8 should be used (which is what I'm doing). I've tried installing everything, and it doesn't help.

FYI: Maybe thats because of ts-loader 9...

Expected behavior

Run without error

Steps to reproduce the issue

Issue reproduction repository

Environment