gpt4 book ai didi

webpack - ProgressPlugin TypeError : Cannot read property 'tap' of undefined

转载 作者:行者123 更新时间:2023-12-04 08:20:18 24 4
gpt4 key购买 nike

我在编译过程中遇到错误。似乎对 webpack 中的 ProgressPlugin 不满意:

/node_modules/webpack/lib/ProgressPlugin.js:205
compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

TypeError: Cannot read property 'tap' of undefined

我知道 webpack 4 的插件最近发生了一些变化。似乎 addEntry, failedEntry, succeedEntry不在编译 Hook 的文档中 - https://webpack.js.org/api/compilation-hooks/ - 我错过了什么吗?

我的 package.json 部门:
"amazon-cognito-identity-js": "^2.0.30",
"array-move": "^1.0.0",
"aws-sdk": "^2.352.0",
"babel-loader": "^8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"fuse.js": "^3.3.0",
"grid-styled": "^5.0.2",
"json-cycle": "^1.3.0",
"lodash": "^4.17.11",
"next": "^7.0.2",
"next-routes": "^1.4.2",
"node-fetch": "^2.2.1",
"path-match": "1.2.4",
"rc-time-picker": "^3.4.0",
"react": "^16.6.1",
"react-autocomplete": "^1.8.1",
"react-copy-to-clipboard": "^5.0.1",
"react-day-picker": "^7.2.4",
"react-dom": "^16.6.1",
"react-modal": "^3.6.1",
"react-places-autocomplete": "^6.1.3",
"react-scripts": "^1.1.5",
"react-spinners": "^0.4.7",
"react-stripe-checkout": "^2.6.3",
"react-stripe-elements": "^2.0.1",
"refunk": "^3.0.1",
"styled-system-html": "^2.0.2",
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"

最佳答案

就我而言,错误是我在 resolve.plugins 下放置了一个插件。 , 而不是直接在 plugins在 webpack 配置中。解决方案来自:https://github.com/webpack/webpack/issues/8548#issuecomment-449829774

关于webpack - ProgressPlugin TypeError : Cannot read property 'tap' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53227877/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com