[] [summer-compiler] Couldn't found the '../../../components/navigationBar/navigationBar.json' file relative to 'pages/member/index'
Error: [summer-compiler] Couldn't found the '../../../components/navigationBar/navigationBar.json' file relative to 'pages/member/index'
at AppConf.loadComp (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3940)
at async a (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3577)
at async AppConf.loadPage (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3674)
at async C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:2091
at async Recorder.run (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\utils\progressRecorder.js:2:956)
at async AppConf.load (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:1943)
at async AppConf.build (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\baseconf.js:2:218)
at async AppConf.getConf (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:665)
at async AppGraph.getConf (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appgraph.js:2:843)
at async SummerCompiler.getConf (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\085b1c3e1e333fc65b7b4f6e4c1c\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\summer.js:2:5375)
新建项目也会这样吗
经过测试发现两层以上的相对路径就会报这个错,
要解决新版开发工具中json文件路径报错的问题可以这样:
全局搜索`../../../`,搜索时候点一下右边三个点,在要包含的文件中输入`.json`,将搜有搜索到的结果替换为`/`即可。请注意,仅替换json文件,否则js文件解析会出问题!!!
我也遇到同样问题,请问怎么解决的?