sitemap.json Error: 未找到入口 sitemap.json 文件的解决方法

报错: sitemap.json Error: 未找到入口 sitemap.json 文件,或者文件读取失败,请检查后重新编译。

解决方法:将上一节中删除掉的weapp/sitemap.json拷贝到C:\Users\Administrator\Code\larabbs-weapp\weapp下

C:\Users\Administrator\Code\larabbs-weapp\weapp\sitemap.json内容:

{
  "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
  "rules": [{
  "action": "allow",
  "page": "*"
  }]
}

结果$npm run dev之后,微信程序刷新出现code

vagrant@homestead:~/Code/larabbs-weapp$ npm run dev

> larabbs@0.0.2 dev /home/vagrant/Code/larabbs-weapp
> wepy build --watch

[15:41:08] info build app start...
[15:41:24] info app building App
[15:41:25] info component building components
[15:41:25] info vendor building vendor
[15:41:25] info assets building assets
[15:41:25] info build finished
[15:41:25] info watching...

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!