svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

CommonIcon

Open Zahara-Nour opened this issue 3 years ago • 4 comments

While using an Icon from @smui/common :

Cannot read properties of null (reading 'SmuiElement') TypeError: Cannot read properties of null (reading 'SmuiElement') at CommonIcon.svelte:33:32

Seems that there is an error with the extension of the index file

from CommonIcon.svelte import { SmuiElement, Svg } from './index.js';

whereas there is an index.ts file in the same directory.

Zahara-Nour avatar Oct 22 '22 15:10 Zahara-Nour

Getting what appears to be same issue on CommonLabel (v7.0.0-beta.0)

jboornlp avatar Oct 26 '22 13:10 jboornlp

This is impeding usage in svelte-kit with ssr crashing because of this.

raythurnvoid avatar Nov 04 '22 13:11 raythurnvoid

This is a huge issue. At this point I am going to have to find another UI Framework. There doesn't seem to be much progress for SSR, the documentation is non-existent, and this the norms are all over the place.

jdgamble555 avatar Nov 09 '22 02:11 jdgamble555

This is explicitly what the TypeScript documentation tells you to do. What kind of setup do you have that's causing this issue? I'm using SMUI in SvelteKit and I'm not getting this error. The demo site is built with SvelteKit, and it's all prerendered with SSR, so it's likely that this is caused by a configuration issue.

hperrin avatar Apr 03 '23 22:04 hperrin