Skip to content

Cannot read properties of undefined (reading 'themeDefs') TypeError: Cannot read properties of undefined (reading 'themeDefs') #213

@brashidnia-og

Description

@brashidnia-og

Constantly getting an undefined on the current(state) call here https://github.com/cosmology-tech/interchain-ui/blob/02de661f1de495c98e4700149ad14a06c3795ae2/src/models/store.ts#L120

leading to an undefined error on the currentState.themeDefs @ L123, but I am passing in a valid themeDefs to the ThemeProvider. I have no idea what is causing the state to not be set properly

    <ThemeProvider
      defaultTheme='dark'
      themeDefs={[
        {
          name: 'CUSTOM',
          vars: {
            font: {
              body: 'font-size: 100px;',
            },
            fontSize: {
              sm: '200px',
              md: '240px',
              lg: '200px',
            },
          },
        },
      ]}
      customTheme='CUSTOM'
    > 

Metadata

Metadata

Assignees

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