swordev / suid

A port of Material-UI (MUI) built with SolidJS.
https://suid.io
MIT License
660 stars 47 forks source link

None of your code examples for Selects work... at all #284

Open HyperCrowd opened 4 months ago

HyperCrowd commented 4 months ago

All of the code here simply doesn't work:

https://suid.io/components/select

Versions

Node Version: 18.19.1 NPM Version: 10.2.4 Yarn Version: 1.22.19 SolidJS Version: 1.8.15 @Suid/material Version: 0.15.1 @Suid/system Version: 0.10.5

Steps to Reproduce

Simply try to run any of the code int he Selects examples and it will return this error:

InputLabel.jsx:80 Uncaught TypeError: Cannot read properties of undefined (reading 'create')
    at InputLabel.jsx:80:39
    at createStyled.jsx:27:31
    at Array.reduce (<anonymous>)
    at Object.fn (createStyled.jsx:24:23)
    at runComputation (dev.js:788:22)
    at updateComputation (dev.js:766:3)
    at createMemo (dev.js:268:10)
    at resolveStyles (createStyled.jsx:21:12)
    at StyledComponent (createStyled.jsx:90:34)
    at dev.js:623:16
BierDav commented 4 months ago

Can you please provide a stackblitz or codesandbox project, so that we get more insigt in your problem. Maybe turning off SSR solves your problems. The Select component is not compatible with ssr yet.