[summer-compiler] Couldn't found the '../../../../../components/weChatMobileAuth/weChatMobileAuth.json' file relative to 'pages/mycenter/pages/friendmade/receivecard'
Error: [summer-compiler] Couldn't found the '../../../../../components/weChatMobileAuth/weChatMobileAuth.json' file relative to 'pages/mycenter/pages/friendmade/receivecard'
升级前没有这个错。请问该如何解决
问题已解决
这个是怎么解决的
稳定版和开发版都试过了,都编译报错
[] [summer-compiler] Couldn't found the '../../../../dist/field/index.json' file relative to 'packageA/mycomponent/Permissions/Permissions'
Error: [summer-compiler] Couldn't found the '../../../../dist/field/index.json' file relative to 'packageA/mycomponent/Permissions/Permissions'
at AppConf.loadComp (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:2973)
at async s (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3252)
at async AppConf.loadComp (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3349)
at async a (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:2604)
at async AppConf.loadPage (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:2701)
at async F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:1581
at async Recorder.run (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\utils\progressRecorder.js:2:956)
at async AppConf.loadApp (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:1444)
at async AppConf.build (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:941)
at async AppGraph.getConf (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appgraph.js:2:574)(env: Windows,wxext14566970e7e9f62,1.06.2308310; lib: 2.27.3)
[] [summer-compiler] Couldn't found the '../../../../dist/field/index.json' file relative to 'packageD/mycomponent/yz_addressList/yz_addressList'
Error: [summer-compiler] Couldn't found the '../../../../dist/field/index.json' file relative to 'packageD/mycomponent/yz_addressList/yz_addressList'
at AppConf.loadComp (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:2973)
at async s (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3252)
at async AppConf.loadComp (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3349)
at async s (F:\软件\微信开发者助手\code\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\graph\appconf.js:2:3252)
请问解决了吗,如何解决的呢
经过测试发现两层以上的相对路径就会报这个错,
要解决新版开发工具中json文件路径报错的问题可以这样:
全局搜索`../../../`,在要包含的文件中输入`.json`,将搜有搜索到的结果替换为`/`即可。请注意,仅替换json文件,否则js文件解析会出问题!!!
微信真的是没事找事,以后不升级了
请问这个怎么解决的呢
你好 这个怎么解决的