Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ice909 opened this issue May 9, 2024 · 1 comment
Closed

Comments

@ice909
Copy link

ice909 commented May 9, 2024

调用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;
  }
@zhetengbiji
Copy link
Collaborator

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

@ice909 ice909 closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants