我都是比较新的版本
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
2021-04-03
现在我的配置是这样,其他都和课程一样:
"scripts": {
"start": "webpack-dev-server --open",
"watch": "webpack --watch",
"devDependencies": {
"webpack": "^5.30.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2"
}
注意版本差异
现在我的配置是这样,其他都和课程一样:
"scripts": {
"start": "webpack-dev-server --open",
"watch": "webpack --watch",
"devDependencies": {
"webpack": "^5.30.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2"
}
注意版本差异
2021-04-03