Skip to content

Cannot read properties of undefined (reading 'push') #5690

@elonehoo

Description

@elonehoo

Version

3.2.31

Reproduction link

github.com
stackblitz.com

Steps to reproduce

install

pnpm install

run

pnpm run dev

You can see this error, it will appear in the console

The error code is in "src/pages/index.vue"

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'push')      index.vue:92 
     at initSplashStage (index.vue:92:3)
     at initStages (index.vue:43:3)
     at index.vue:31:3
     at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
     at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:164:21)
     at Array.hook.__weh.hook.__weh(runtime-core.esm-bundler.js:2667:29)
     at flushPostFlushCbs (runtime-core.esm-bundler.js:356:32)
     at flushJobs (runtime-core.esm-bundler.js:401:9)

I have tried many methods, but either there is no way to push in, or the display is null and cannot use other APIs

What is expected?

element push in

What is actually happening?

Cannot read properties of undefined (reading 'push')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions