plentico / plenti

Static Site Generator with Go backend and Svelte frontend
https://plenti.co
Apache License 2.0
985 stars 50 forks source link

await tick() doesn't work #259

Closed Fankhauser-Dominik closed 1 year ago

Fankhauser-Dominik commented 1 year ago

It seems, that tick() doesn't work anymore. I used the Code from this Gallery (https://github.com/BerkinAKKAYA/svelte-image-gallery/blob/master/Gallery.svelte). It worked fine, till I updated something on my site. It seems to me, that the code runs fine till it should use await tick().

Does someone have the same problem?

jimafisk commented 1 year ago

That's interesting, was it working previously but now it's broken? Is there a repo or snippet you can share so I can take a look?

@hlanderdev were you able to get tick() working on a project? Or did you have trouble with it as well?

hlanderdev commented 1 year ago

tick works for me. The only thing that looks like it would be an issue in that code is the template string. They currently do not work in Plenti.

Fankhauser-Dominik commented 1 year ago

I just found out, that my whole Project has now a Problem. Before the 0.6.0 release, everything worked fine. I created a new project and copied over my Gallery.svelte, and it immediately worked there. I also found out, that my Project isn't able to console.log() something. With the newly created one, everything works fine. I guess, the easiest solution is, that I create a new Site and copy everything over. So tick() wasn't the problem. The entire project ran into a Problem...

jimafisk commented 1 year ago

Sorry @Fankhauser-Dominik, the v0.6.0 release makes a few API adjustments so it will break existing sites. For the most the fixes should be quick:

If you're able to share your repo with me, I can try to help you out with these updates.