Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Uncaught TypeError: Cannot redefine property: color #124

Closed
ClementNerma opened this issue Oct 21, 2022 · 4 comments
Closed

[Bug] Uncaught TypeError: Cannot redefine property: color #124

ClementNerma opened this issue Oct 21, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ClementNerma
Copy link

ClementNerma commented Oct 21, 2022

Hi!

I'm currently encountering a blocking error in one of my projects. Here is the code:

export const SideNav: Component<SideNavProps> = (props: SideNavProps) => {
  return (
    <List>
      <ListItem disablePadding>
        <ListItemButton>
          <ListItemText primary="Hello" />
        </ListItemButton>
      </ListItem>
    </List>
  )
}

This generates the following error at runtime:

dev.js:1283 Uncaught TypeError: Cannot redefine property: color
    at Function.defineProperties (<anonymous>)
    at mergeProps (dev.js:1283:14)
    at sx (extendSxProp.jsx:12:24)
    at get sx [as sx] (extendSxProp.jsx:21:20)
    at createStyled.jsx:20:29
    at Array.reduce (<anonymous>)
    at Object.fn (createStyled.jsx:14:36)
    at runComputation (dev.js:693:22)
    at updateComputation (dev.js:676:3)
    at createMemo (dev.js:238:10)

Any idea what's causing this?

I'm using Solid v1.6.0 and SUID v0.6.3.

EDIT: Seems like the error is triggered by ListItemText. If I remove it, everything works fine.

@juanrgm
Copy link
Member

juanrgm commented Oct 22, 2022

I'm looking into it.

There are problems with SolidJS 1.6, downgrade to 1.5.

@juanrgm juanrgm added the bug Something isn't working label Oct 22, 2022
@juanrgm
Copy link
Member

juanrgm commented Oct 22, 2022

I caught the bug and reported it (solidjs/solid#1301).

@juanrgm
Copy link
Member

juanrgm commented Nov 8, 2022

Another issue was reported with SolidJS 1.6.1 (solidjs/solid#1344).

@juanrgm
Copy link
Member

juanrgm commented Nov 17, 2022

Closed via fe655f7.

@juanrgm juanrgm closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants