fork-ts-checker-webpack-plugin
fork-ts-checker-webpack-plugin copied to clipboard
class IssueWebpackError extends webpack_1.default.WebpackError when run webpack build
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
- fork-ts-checker-webpack-plugin: 8.0.0
- typescript: 4.9.5
- eslint: 6.6.0
- webpack: 5.75.0
- os: [e.g. Mac OS 12.1]