Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打包报错Cannot read property 'tapAsync' of undefined #27

Open
chicAboo opened this issue Aug 17, 2020 · 2 comments
Open

打包报错Cannot read property 'tapAsync' of undefined #27

chicAboo opened this issue Aug 17, 2020 · 2 comments

Comments

@chicAboo
Copy link

chicAboo commented Aug 17, 2020

使用inline-manifest-webpack-plugin打包时候会报错,注释了就可以。
版本信息:
"webpack": "^4.41.3",
"html-webpack-plugin": "^4.3.0",
"inline-manifest-webpack-plugin": "^4.0.2",

报错信息:
/.../node_modules/_inline-manifest-webpack-plugin@4.0.2@inline-manifest-webpack-plugin/index.js:18
.tapAsync('InlineManifestWebpackPlugin', function (data, cb) {
^

TypeError: Cannot read property 'tapAsync' of undefined

相关代码:
runtimeChunk: {
name: "runtime",
},

new HtmlWebpackPlugin({
   ......
}),
new InlineManifestWebpackPlugin("runtime"),
@szrenwei
Copy link
Owner

使用 https://github.com/facebook/create-react-app/tree/master/packages/react-dev-utils#new-inlinechunkhtmlpluginhtmlwebpackplugin-htmlwebpackplugin-tests-regex 替代吧,功能一样的,目前这个插件没有维护了。

@chicAboo
Copy link
Author

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants