ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

ionic报错:Cannot read properties of undefined (reading ‘classList‘)

ionic报错:Cannot read properties of undefined (reading ‘classList‘)
  1. 报错信息:
[@ionic/vue Warning]: The view you are trying to render for path /tabs/tab1 does not have the required <ion-page> component. Transitions and lifecycle methods may not work as expected.See https://ionicframework.com/docs/vue/navigation#ionpage for more information.
IonRouterOutlet.ts:29 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'classList')at isViewVisible (IonRouterOutlet.ts:29:17)at handlePageTransition (IonRouterOutlet.ts:327:9)at setupViewItem (IonRouterOutlet.ts:488:9)at watch.deep (IonRouterOutlet.ts:112:13)at callWithErrorHandling (runtime-core.esm-bundler.js:193:18)at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:201:17)at job (runtime-core.esm-bundler.js:1943:9)at callWithErrorHandling (runtime-core.esm-bundler.js:193:32)at flushJobs (runtime-core.esm-bundler.js:401:9)
  1. List item
    在响应的页面添加IonPage组件即可
    在这里插入图片描述
返回列表