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

第204页ejs文件htmlwebpackPlugin中w应为大写 #20

Open
zzy1661 opened this issue Dec 23, 2017 · 10 comments
Open

第204页ejs文件htmlwebpackPlugin中w应为大写 #20

zzy1661 opened this issue Dec 23, 2017 · 10 comments
Labels

Comments

@zzy1661
Copy link

zzy1661 commented Dec 23, 2017

第10章webpack打包报错,找不到htmlwebpackPlugin,将w改为大写后通过

@chenbei0516
Copy link

666666

@icarusion
Copy link
Owner

感谢反馈,已修改,再次印刷时将更正。

@xiaoCong2014
Copy link

麻烦指明哪一面的哪一行要改 , 不然大家都要花时间找

@zhiyuanMain
Copy link

@xiaoCong2014 这一页的index.ejs文件代码

@wangyunan2018
Copy link

你好,请问index.ejs文件在哪儿,我看的电子版的,webpack4.0各种坑,起初安装完各种依赖后直接运行不起来了,后来网上搜的方法,需要重新换种依赖安装方式,然后就可以了,但是到了app.vue这儿就卡主了,按照书上的配置方法来配置好了之后,提示vue-loader和vueLoaderPlugin有问题,请问大家是怎么解决的,谢谢,下面是报错代码:(ERROR in ./app.vue
Module Error (from ./node_modules/vue-loader/lib/index.js):
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./main.js 2:0-28 6:13-16

ERROR in ./app.vue?vue&type=style&index=0&id=381730fa&scoped=true&lang=css& 18:3
Module parse failed: Unexpected token (18:3)
File was processed with these loaders:

  • ./node_modules/vue-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    |
    |

div{
|
| font-size:30px;
@ ./app.vue 4:0-87
@ ./main.js

ERROR in ./app.vue?vue&type=template&id=381730fa&scoped=true& 2:0
Module parse failed: Unexpected token (2:0)
File was processed with these loaders:

  • ./node_modules/vue-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    |

| hello {{name}}
|
@ ./app.vue 1:0-94 11:2-8 12:2-17
@ ./main.js
i 「wdm」: Failed to compile.)

@zzy1661
Copy link
Author

zzy1661 commented Sep 20, 2019 via email

@wangyunan2018
Copy link

wangyunan2018 commented Sep 20, 2019 via email

@wangyunan2018
Copy link

wangyunan2018 commented Apr 21, 2020 via email

@Envythink
Copy link

对,目前最新版是webpack4,里面各种坑,建议新手不要使用webpack4,否则找错是一件很费脑力和时间的活

@wangchuan-long
Copy link

感谢反馈,已修改,再次印刷时将更正。

p204的HtmlWebpackPlugin中的W改为大写后,p203页中webpack.prod.config.js里的代码第二行HtmlWebpackPlugin也应该改为大写,否则上面会引用两次,一次小写一次大写

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

No branches or pull requests

8 participants