swordev / suid

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

Error when using icons #224

Closed Industrial closed 1 year ago

Industrial commented 1 year ago

When I use an icon e.g. here: https://github.com/Industrial/test-deno-solidstart/blob/main/apps/web/src/components/organisms/navbar/Navbar.tsx#L26

Then I get the error:

TypeError: Cannot read properties of undefined (reading 'assets')
    at Proxy.useAssets

I found the function and it's:

function useAssets(fn) {
  sharedConfig.context.assets.push(() => resolveSSRNode(fn()));
}

Did I set my project up wrongly?