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 #33

Open
snoopy1412 opened this issue Oct 16, 2018 · 15 comments
Open

Cannot read property 'tapAsync' of undefined #33

snoopy1412 opened this issue Oct 16, 2018 · 15 comments

Comments

@snoopy1412
Copy link

Description

使用create-react-app 新建的项目,然后尝试了一下,报了Cannot read property 'tapAsync' of undefined 的错误。

还是说,需要什么特别注意的设置?

@HiuYanChong
Copy link
Contributor

HiuYanChong commented Nov 7, 2018

可能是没有配置 html-webpack-plugin,这个插件依赖于它
我在尝试的时候也遇到了和你一样提示的错误,配置了 html-webpack-plugin 就好了

@SunshowerC
Copy link

create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题

@snoopy1412
Copy link
Author

create-react-app + page-skeleton-webpack-plugin 使用不了 +1,目测是 create-react-app 做了一些骚操作导致的这个问题

哈哈,不清楚呢

@SunshowerC
Copy link

SunshowerC commented Nov 13, 2018

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

@Jocs
Copy link
Contributor

Jocs commented Nov 13, 2018

@weiyu-chen 可以提一个 PR。

@littlepoolshark
Copy link

@weiyu-chen ,PR提给page-skeleton-webpack-plugin了吗?

@SunshowerC
Copy link

@weiyu-chen ,PR提给page-skeleton-webpack-plugin了吗?

@littlepoolshark 有老哥提了 PR

@zhangyifei007
Copy link

还是会有同样的问题啊,老铁们

@xujun1986
Copy link

还是会有同样的问题啊,老铁们

+1

@sfcjs
Copy link

sfcjs commented Sep 26, 2019

lj

@Cloudyttt
Copy link

我也碰到了这个问题,有办法解决么

@tangshuimei
Copy link

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的,那,想让我咋整

@refanbanzhang
Copy link

refanbanzhang commented Feb 5, 2021

使用create-react-app,也是这个问题,未解决

@zwqzhang
Copy link

这个问题有人解决了吗?

@baikaifa
Copy link

我也遇到这个问题了,不知道有人会弄不会

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