电脑版本
开发者工具版本:
wechat_devtools_1.06.2405020_darwin_x64.dmg
模拟器启动失败截图:
报错内容:
[] [summer-compiler] Couldn't found the '../../../components/select/select.json' file relative to 'pages/article_publish/article_publish'
Error: [summer-compiler] Couldn't found the '../../../components/select/select.json' file relative to 'pages/article_publish/article_publish'
at AppConf.loadComp (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:4086)
at async a (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:3717)
at async AppConf.loadPage (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:3814)
at async /Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:2290
at async Recorder.run (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/utils/progressRecorder.js:2:956)
at async AppConf.loadApp (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:2153)
at async AppConf.build (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appconf.js:2:1058)
at async AppGraph.getConf (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/graph/appgraph.js:2:574)
at async SummerCompiler.getConf (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summer/summer.js:2:4397)
at async messageHandler (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/miniprogram-builder/modules/corecompiler/summerEntryProcess.js:1:2088)(env: macOS,mp,1.06.2405020; lib: 2.33.0)
经过测试发现两层以上的相对路径就会报这个错,
要解决新版开发工具中json文件路径报错的问题可以这样:
全局搜索`../../../`,搜索时候点一下右边三个点,在要包含的文件中输入`.json`,将搜有搜索到的结果替换为`/`即可。请注意,仅替换json文件,否则js文件解析会出问题!!!
服了,得版本回退
我也遇到了类似的问题,回退到上个版本才解决了
到现在还没解决,被迫回退版本,不敢升级了
我今天也是!!!服了
一样,今天突然出现这个了。。。
升级到1.06.2405020这个版本就会有问题,我今天也遇到