uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

HBuilderX 更新到4.14.2024042905-alpha之后,uni.navigateTo 报错

Open ice909 opened this issue 1 year ago • 1 comments

调用uni.navigateTo 之后会报

一个警告

Unhandled error during execution of mounted hook 
 at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>

一个错误

Cannot read properties of null (reading '$el')
    at initElement (uni-h5.es.js:25546:45)

报错最后指到了uni-h5.es.js

function initElement() {
    refreshContainerElem = refreshRef.value.$el; <--
    refreshControllerElem = refreshContainerElem.querySelector(".uni-page-refresh");
    refreshControllerElemStyle = refreshControllerElem.style;
    refreshInnerElemStyle = refreshControllerElem.querySelector(
      ".uni-page-refresh-inner"
    ).style;
  }

ice909 avatar May 09 '24 11:05 ice909

转到正式版,或者等待 alpha 版更新

zhetengbiji avatar May 10 '24 03:05 zhetengbiji