Skip to content

UnhandledPromiseRejectionWarning: TypeError: loaderContext.getLogger is not a function #135

@yxw007

Description

@yxw007
  • Operating System: win10
  • Node Version: v14.14.0
  • NPM Version: 6.14.8
  • webpack Version: 5.68.0
  • thread-loader Version: 3.0.4

Expected Behavior

Normal use thread-loader

Actual Behavior

image

Code

webpack.config.js

How Do We Reproduce?

Mini Produce Environment

I found a clue

Worker.loaders context is missing some fields and Funtion

The red box shows the missing content, context lack getLoger Function, Therefore, sass failed to obtain the getLog error

sass-loader/dist/utils.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions