page-skeleton-webpack-plugin
page-skeleton-webpack-plugin copied to clipboard
Cannot read property 'tapAsync' of undefined
Description
使用create-react-app 新建的项目,然后尝试了一下,报了Cannot read property 'tapAsync' of undefined 的错误。
还是说,需要什么特别注意的设置?
可能是没有配置 html-webpack-plugin,这个插件依赖于它 我在尝试的时候也遇到了和你一样提示的错误,配置了 html-webpack-plugin 就好了
create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题
create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题
哈哈,不清楚呢
create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题
定位了一下问题,发现是 page-skeleton-webpack-plugin 依赖 html-webpack-plugin 3.x, 而 create-react-app2.0 依赖 html-webpack-plugin 4.x , 所以就不兼容,需要把create-react-app2.0 降级 html-webpack-plugin 到 3.x,或者让page-skeleton-webpack-plugin 支持html-webpack-plugin 4.x 。 @snoopy1412
@Weiyu-Chen 可以提一个 PR。
@Weiyu-Chen ,PR提给page-skeleton-webpack-plugin了吗?
还是会有同样的问题啊,老铁们
还是会有同样的问题啊,老铁们
+1
lj
我也碰到了这个问题,有办法解决么
create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题
定位了一下问题,发现是 page-skeleton-webpack-plugin 依赖 html-webpack-plugin 3.x, 而 create-react-app2.0 依赖 html-webpack-plugin 4.x , 所以就不兼容,需要把create-react-app2.0 降级 html-webpack-plugin 到 3.x,或者让page-skeleton-webpack-plugin 支持html-webpack-plugin 4.x 。 @snoopy1412
我降级之后又报错TypeError: self.htmlWebpackPlugin.getHooks is not a function,这个就是要用4.x的,那,想让我咋整
使用create-react-app,也是这个问题,未解决
这个问题有人解决了吗?
我也遇到这个问题了,不知道有人会弄不会