Skip to content

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

@cap-mfm

Description

@cap-mfm

Bug report

Required System information

  • Node.js version: 22.3.0
  • NPM version: 10.8.3 (using pnpm at 9.10.0)
  • Strapi version: 5.0.6
  • Database:
  • Operating system: Darwin Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
  • Is your project Javascript or Typescript:

Describe the bug

Im getting an error page reporting the following error when trying to access the site pages I crated in my Strapi admin panel (local instance, still in development, luckily):

Cannot read properties of undefined (reading 'push')

The page is under the following URL:

http://localhost:1337/admin/content-manager/collection-types/api::page.page?page=1&pageSize=10&sort=Title%3AASC

Steps to reproduce the behavior

I'm simply trying to visit the list of items of type Page I created in my Strapi instance.

Expected behavior

Pretty obvious, I should be able to access my pages.

Screenshots

image

Additional context

I recently migrated to v5, I guess this is a duplicate of #21267

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:content-managerSource is core/content-manager packagestatus: can not reproduceNot enough information to reproduceversion: 5Issue is present in Strapi 5

    Type

    No type

    Projects

    Status

    Fixed/Shipped

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions