关于微信开发者工具报错app.json: 未找到 [“sitemapLocation“] 对应的 sitemap.json

今天我在微信开发者工具中导入项目的发现打不开项目,并且出现如下报错:

app.json: 未找到 ["sitemapLocation"] 对应的 sitemap.json

首先我的项目是导入的代码肯定没问题。

我看到网上很多人都说在要用Hbuilder打开项目,先停止然后再选择微信开发者工具。

我如此操作了一下,又在微信开发者工具中编译了一下。可是发现依旧没什么用。

后来我想到,我的根目录里面明明有sitmap.json文件。确报错缺少sitmap.json。

首先我确定了一下根目录下app.json文件中sitemapLocation字段配置正确:

  "sitemapLocation": "sitemap.json",


其次我就把项目里的sitmap.json删掉,重新创建另一个。(其实文件名和内容都一样)

可是当我重新创建后不在报错,问题解除!就很神奇

Loading project all files... Loading project all files success Loading project all files... Loading project all files... Loading project all files success Loading project all files success 编译 app.json 编译 ext.json 编译 2 个页面json文件 编译 app.json 编译 ext.json 编译 2 个页面json文件 编译 app.json 编译 ext.json 编译 2 个页面json文件 编译 app.json 编译 ext.json 编译 2 个页面json文件 analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json 编译 app.json 编译 ext.json 编译 2 个页面json文件 analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json getDevCodeByFileList-miniProgram 编译 pages/index/index.wxml 编译 pages/index/index.wxml 编译 pages/logs/logs.wxml 编译 pages/logs/logs.wxml getDevCodeByFileList-miniProgram 编译 app.json 编译 ext.json 编译 2 个页面json文件 getDevCodeByFileList-miniProgram 编译 app.wxss 编译 app.wxss 编译 pages/index/index.wxss 编译 pages/index/index.wxss 编译 pages/logs/logs.wxss 编译 pages/logs/logs.wxss getDevCodeByFileList-miniProgram 编译 app.js 编译 app.js 编译 utils/util.js 编译 utils/util.js getDevCodeByFileList-miniProgram 编译 pages/index/index.js 编译 pages/index/index.js 编译 app.json 编译 ext.json 编译 2 个页面json文件 analyzing codes... ignoring files: project.private.config.json,utils/util.js analyzing codes success Ignored by code analyzer: project.private.config.json,utils/util.js analyzing codes... ignoring files: project.private.config.json,utils/util.js analyzing codes success Ignored by code analyzer: project.private.config.json,utils/util.js 编译 app.json 编译 ext.json 编译 2 个页面json文件 analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json 编译 app.json 编译 ext.json 编译 2 个页面json文件 analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json analyzing codes... ignoring files: project.private.config.json analyzing codes success Ignored by code analyzer: project.private.config.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 编译 app.json app.json: 在项目根目录未找到 app.json 正在编译代码 analyzing codes... ignoring files: project.private.config.json analyzing codes success 编译打包小程序 编译 JSON 文件 app.json: 在项目根目录未找到 app.json app.json: 在项目根目录未找到 app.json
07-26
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值