Skip to content

No such label 'done hook' for WebpackLogger.timeEnd() #499

Closed

Description

@NexxLuo

webpack v5.70.0
webpack-bundle-analyzer v4.5.0
new BundleAnalyzerPlugin()

QQ图片20220322151534

Activity

  1. ArTiSTiX commented on Oct 14, 2022

    @ArTiSTiX

    I also have this issue when using webpack compiler in js, but not in CLI.
    If the compilation fails (compiled with some errors), we have this Fatal error instead of a normal compilation failure.

  2. valscion commented on Oct 14, 2022

    @valscion
    Collaborator

    Are you able to create a reproduction repository showing this error happening?

  3. ArTiSTiX commented on Oct 14, 2022

    @ArTiSTiX

    In fact i was able to find the exact case why this is happening.

    In the Webpack run callback, if something throws it will trigger this error.

    Ex:

    const webpack = require('webpack');
    const config = require('./config');
    const compiler = webpack(config);
    
    compiler.run((err, stats) => {
      throw new Error('something');
    });
    

    If the WebpackBundleAnalyzer is configured, it should trigger this error.

  4. valscion commented on Oct 14, 2022

    @valscion
    Collaborator

    Adding a test that asserts the error thrown during compiler run would be a nice addition! Bonus points if the issue can be fixed, too

  5. amareshsm commented on Nov 19, 2022

    @amareshsm
    Contributor

    @valscion The error message seems to be from Webpack logger. Can you pls brief what kind fix is expected here?.

  6. valscion commented on Nov 21, 2022

    @valscion
    Collaborator

    I don't really know what is the expected outcome to be honest 😅. What's the output if this same error is triggered but webpack-bundle-analyzer is not in the plugins list? Does webpack output the error in a nicer way that time?

  7. added 3 commits that reference this issue on Feb 11, 2026
    cbc023a
    24bf6d7
    92afed1
  8. ronakmaheshwari commented on Oct 16, 2026

    @ronakmaheshwari
    Contributor

    @valscion even this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions