thread-loader icon indicating copy to clipboard operation
thread-loader copied to clipboard

Cannot use latest thread-loader with [email protected]

Open MhMadHamster opened this issue 5 years ago • 0 comments

  • Operating System: Windows 10
  • Node Version: 12.13
  • NPM Version: yarn 1.12.3
  • webpack Version: 4.44.2
  • thread-loader Version: 3.0.0

Expected Behavior

No errors.

Actual Behavior

Error: Cannot read property 'hooks' of undefined occures when building project with exposed ts modules.

Code

// index.ts
function foo() {};

export default foo;

How Do We Reproduce?

Repo with example: https://github.com/MhMadHamster/webpack-expose-ts-modules

Initially opened issue in the expose-loader repository: https://github.com/webpack-contrib/expose-loader/issues/115

MhMadHamster avatar Sep 21 '20 13:09 MhMadHamster