Skip to content

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

Closed

Description

@CrispenGari

When i try to run the following command:

yarn changeset version

I'm getting the following giant error

The following error was encountered while generating changelog entries
We have escaped applying the changesets, and no files should have been affected
🦋  error TypeError: Cannot read properties of undefined (reading 'push')
🦋  error     

Here is the version of changesets/cli i'm using:

{
"@changesets/cli": "^2.27.1",
}

I'm running node version: v18.17.1

What is the issue here?

Activity

  1. unional commented on Mar 22, 2024

    @unional

    For me, I encounter this as I accidentally edit the changeset and use feat the type.

    ---
    "pkg": feat // <-- should be minor
    ---
    
    ...
  2. yamcodes commented on May 29, 2024

    @yamcodes

    For me, the error occurred when I'd added trailing commas:

    ---
    "pkg1": minor, // <-- shouldn't have a comma, semicolon or any trailing character
    "pkg2": minor, // <-- shouldn't have a comma, semicolon or any trailing character
    ---
  3. added theissue type on Dec 12, 2025
  4. bluwy commented on Jun 26, 2026

    @bluwy
    Member

    Should be fixed in #1831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions