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"
}
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.
Operating System, Node, and NPM dependency versions