jest-webpack
jest-webpack copied to clipboard
TypeError: Cannot read property 'compiler' of null
> ./node_modules/.bin/jest-webpack
/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:149
const shortResource = relative(this.compilation.compiler.options.context, resource);
^
TypeError: Cannot read property 'compiler' of null
at SharedData.compileFile (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:149:54)
at SharedData.compileModule (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:275:10)
at resolver (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/entry-reference-plugin.js:73:24)
at process.nextTick (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/webpack/lib/NormalModuleFactory.js:196:7)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
@dylan-chong Did you figured out how to solve this error ?
Nope
I'm having this same issue.
Same here with webpack v4.14.0.
Same problem.
FYI, this happened to me when trying to use HtmlWebpackPlugin for my webpack config during testing. Removing the plugin fixed the issue.
Same problem with DojoWebpackPlugin. But I can't remove it. :(
Me too for using HtmlWebpackPlugin.
Anyone had success with HtmlWebpackPlugin and Jest?