-
Notifications
You must be signed in to change notification settings - Fork 83
On many pages, only the last example loads (upstream issue) #148
Comments
@aaronharder try to change page to another component and then back to the one you want to look at (e.g. ButtonGroup -> Button -> ButtonGroup). We haven't found the problem yet, it could be due to a version upgrade (on sapper/rollup/?). |
Don't know, most probably sapper updating might be the cause or could be bad file paths. |
Downloaded locally and did a little debugging. Looking at this line:
Seems like the import is definitely being attempted every time, but is frequently failing. Tried adding a ".catch()" to my local copy, but nothing came through. Apparently the promise returned by import() just hangs and never returns sometimes? Anyway, seems definitively like a problem not of your making. Too bad. Thanks for looking! |
Hello again. I noticed that it is the LAST They're tying their Promise resolution to a link.addEventListener('load', function () {
return fulfil();
});
link.addEventListener('error', reject); In my local tests, this fixes the problem! Not sure if you guys might have more clout than I do in reporting this issue to the Sapper project. If so, I'm happy for you to report it. If not, let me know and I will be glad to make a report. Thanks again for your great work on these Material components for Svelte. |
@TheComputerM you seem to have some more clout? |
I don't think sapper will be receiving any more updates. |
Makes sense. Maybe when you/if you guys move the Materialify site to SvelteKit etc this issue will no longer exist. Thanks again! |
@TheComputerM why exactly do we not fix this? Will sapper not merge such a PR anymore? |
@Florian-Schoenherr My info can be outdated, but when a year ago I ask a similar question, they gave me an answer:
//Edit:From FAQ:
|
Hello, great project! I'm seeing that many of the examples in your docs appear to be missing.
Just one example: https://svelte-materialify.vercel.app/components/button-groups/
Screen grab:
![chrome_DiE4oMxoXc](https://user-images.githubusercontent.com/940080/109488064-ae937500-7a4a-11eb-8bf5-52e5bcce4735.png)
This issue is happening for me throughout the docs. Not every example, but many of them. Hoping it's a quick fix once the cause of this issue is identified.
Thanks for a great library of components!
The text was updated successfully, but these errors were encountered: