收藏
回答

微信小程序模拟器启动失败,如何解决?

电脑版本

开发者工具版本:

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)

回答关注问题邀请回答
收藏

8 个回答

  • Gray
    Gray
    10-31

    经过测试发现两层以上的相对路径就会报这个错,

    要解决新版开发工具中json文件路径报错的问题可以这样:

    全局搜索`../../../`,搜索时候点一下右边三个点,在要包含的文件中输入`.json`,将搜有搜索到的结果替换为`/`即可。请注意,仅替换json文件,否则js文件解析会出问题!!!

    10-31
    有用 1
    回复 1
    • John
      John
      11-15
      实测有效
      11-15
      回复
  • Ethan
    Ethan
    2天前

    检查一下app.json里的引用组件的路径

    2天前
    有用
    回复
  • 尖叫蕈
    尖叫蕈
    08-28

    服了,得版本回退

    08-28
    有用
    回复
  • 正直的保温杯
    正直的保温杯
    08-05

    我也遇到了类似的问题,回退到上个版本才解决了

    08-05
    有用
    回复
  • NULL
    NULL
    07-31

    到现在还没解决,被迫回退版本,不敢升级了

    07-31
    有用
    回复
  • camellia
    camellia
    07-25

    我今天也是!!!服了

    07-25
    有用
    回复
  • William
    William
    07-17

    一样,今天突然出现这个了。。。

    07-17
    有用
    回复
  • 江泽霖
    江泽霖
    07-16

    升级到1.06.2405020这个版本就会有问题,我今天也遇到

    07-16
    有用
    回复 6
    查看更多(1)
登录 后发表内容