Skip to content

TypeError: Cannot read properties of undefined (reading 'tap')Β #551

@suiboyu

Description

@suiboyu

When I use this plug-in in a business project, it works fine. But when I use it in the component library, I get an error.

tapable.hooks[name].tap(reason, callback);
                        ^

TypeError: Cannot read properties of undefined (reading 'tap')

Operating System, Node, and NPM dependency versions

Mac OS 11.2.3
Node 16.12.0

"devDependencies": {
  "webpack": "^5.11.0",
    "webpack-bundle-analyzer": "^4.4.2",
    "webpack-cli": "^4.2.0",
    "webpack-dev-server": "^3.11.2",
    "webpack-manifest-plugin": "^4.0.2"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions