收藏
回答

1.05.2204250 经常报Error -1152: WXML file not found

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.05.2204250

错误: Error -1152: WXML file not found:

重现:修改布局后经常报错,重复点击编译后又正常了,这个应该是工具的bug


以下是错误:


[ WXML 文件编译错误] 

环境及执行信息:

编译器版本: 20220511

node版本: v16.4.2

参数: --config-path /tmp/4caf5c7bf045ba0ddfa67947953368d4


具体报错:

Error -1152: WXML file not found: ././components/block-view/index>_<4207./components/cell/index>_<4207./components/cell-group/index>_<4207./components/checkbox/index>_<4207./components/checkbox-group/index>_<4207./components/col/index>_<4207./components/drag/index>_<4207./components/drawer/index>_<4207./components/image-selector/index>_<4207./components/image-view/index>_<4207./components/message/index>_<4207./components/refreshview/index>_<4207./components/row/index>_<4207./components/sheet/index>_<4207./components/sticky/index>_<4207./components/sticky-item/index>_<4207./components/swipeout/index>_<4207./components/switch/index>_<4207./components/tab-bar/index>_<4207./layer/login/index>_<4207./layer/modal/index>_<4207./layer/normal/index>_<4207./layer/paySuccess/index>_<4207./layer/register/index>_<4207./layer/userget/index>_<4207./pages/admin/appManage/index>_<4207./pages/admin/roomEdit/index>_<4207./pages/admin/roomManage/index>_<4207./pages/admin/roomManage/item/index>_<4207./pages/admin/roomOrderDetail/index>_<4207./pages/admin/roomOrderManage/index>_<4207./pages/admin/roomOrderManage/item/index>_<4207./pages/admin/roomOrderRevoke/index>_<4207./pages/admin/roomPrice/index>_<4207./pages/admin/roomStatusManage/index>_<4207./pages/admin/roomStatusManage/item/index>_<4207./pages/appraise/index>_<4207./pages/appraise/item/index>_<4207./pages/appraiseDetail/index>_<4207./pages/bookingDetail/index>_<4207./pages/bookingRoom/index>_<4207./pages/bookingRoom/item/index>_<4207./pages/home/index>_<4207./pages/index/index>_<4207./pages/me/index>_<4207./pages/roomDetail/index>_<4207./pages/roomOrder/index>_<4207./pages/roomOrder/orderItem/index>_<4207./pages/roomOrderDetail/index>_<4207./pages/userInfoEdit/index>_<4207./pagesComponents/appTextEdit/index>_<4207./pagesComponents/bookingDateSelector/index>_<4207./pagesComponents/dateSelector/index>_<4207./pagesComponents/hotelTags/index>_<4207./pagesComponents/huayuImage/index>_<4207./pagesComponents/price/index.wxml

(env: Linux,mp,1.05.2204250; lib: 2.24.1)

Uncaught FrameworkError 

 Unexpected token '<' 

 SyntaxError: Unexpected token '<'(env: Linux,mp,1.05.2204250; lib: 2.24.1)


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

4 个回答

  • 瑶
    2023-09-06

    问题:[ WXML 文件编译错误]  Error -1152: WXML file not found: xxx 解决:重启开发者工具好了


    2023-09-06
    有用 1
    回复
  • Alex
    Alex
    2022-09-23

    我也是新建组件后,就出现找不到组件wxml文件的错误。我的解决办法是:清空全部缓存>重新编译。这样就没错误出现了。

    2022-09-23
    有用 1
    回复 1
  • 哈哈
    哈哈
    2022-12-13

    应该是调试体积超过了2M,试着在本地设置打开预览包体积调整为4M。

    2022-12-13
    有用
    回复
  • 笑看人生
    笑看人生
    2022-05-26

    我重新更换版本就好了

    2022-05-26
    有用
    回复 1
    • wantingtr
      wantingtr
      2022-06-29
      换的是什么版本?我更换了好几个版本都会这样,必现 完全运行不起来
      2022-06-29
      回复
登录 后发表内容