命令行:请检查 project.config.json 是否存在及是否有效

发布于 6 年前作者 jiafang5977 次浏览最后编辑 6 年前来自 ask

执行:/Applications/wechatwebdevtools.app/Contents/MacOS/cli -p --preview /Users/xxxx/myfile/www/gitstore/xxxx/dist

出现以下报错信息:

IDE server has started, listening on http://127.0.0.1:63921

initialization finished

preparing preview…

StatusCodeError: 400 - “{\“code\”:400002,\“error\”:\“请检查 project.config.json 是否存在及是否有效\”}”

为什么总是提示这个报错?dist是项目目录,编辑器就是以dist打开的,官方有答案吗?我看有人问过这个问题,但是没官方回复啊

1 回复
minsong
minsong1 楼4 年前

dist 目录下有 project.config.json 文件吗?