我都是比较新的版本
return h('dev', {class: 'footer'}, [h('span', `Write by ${this.author}`)]) --- 正常
return (
<div class="footer">
<span>Written by yuki</span>
</div>
)
--- 提示h is not a function
return h('dev', {class: 'footer'}, [h('span', `Write by ${this.author}`)]) --- 正常
return (
<div class="footer">
<span>Written by yuki</span>
</div>
)
--- 提示h is not a function
2023-06-15
npm run dev运行报错
http://img1.sycdn.imooc.com//6400605000012e6406390528.jpg
百度了错误说是webpack-cli版本不行,需要重新卸载安装
可是安装webpack-cli时又报错了
http://img1.sycdn.imooc.com//640060a90001c1a206360571.jpg
请教一下各位大佬
http://img1.sycdn.imooc.com//6400605000012e6406390528.jpg
百度了错误说是webpack-cli版本不行,需要重新卸载安装
可是安装webpack-cli时又报错了
http://img1.sycdn.imooc.com//640060a90001c1a206360571.jpg
请教一下各位大佬
2023-03-02
最赞回答 / Demakusi
开头把老师的npm i webpack命令替换成npm install --save webpack@3.10.0就可以了(@后面就是安装时指定的版本号),然后我把其他依赖也安装了视频对应的版本(在package.json里的dependencies,视频的10:37里有显示)就没有报错了
2021-10-31