primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.97k stars 514 forks source link

Error when deploying site #337

Open SpyrexDE opened 1 year ago

SpyrexDE commented 1 year ago

image

mateomorris commented 1 year ago

@SpyrexDE is this happening on all your sites or just this one?

mateomorris commented 1 year ago

Added error checking in the latest version which fails the build if any symbols are missing content & shows an error state for them in the sidebar. That should take care of this, but feel free to reopen if not.

SpyrexDE commented 1 year ago

@mateomorris Looks like it did not solve the issue, same message as before. I only get the error when deploying the site with my timeline component.

It must have something todo with the each keyword. I am iterating through all my timeline entries like this:

    <div class="entries">
      {#each entries as entry}
          <div class="entry">
            <div class="background">
              <aside class="image" src="{images[15].image.url}"></aside>
              <aside class="image" src="{images[0].image.url}"></aside>
            </div>
            <div class="year">{entry.year}</div>
            <div class="title">{entry.title}</div>
            <div class="body">
              <p>{@html entry.text.html}</p>
            </div>
          </div>
      {/each}
    </div>

And the entry fields are setup like this:

image

Btw. I can't reopen the issue on my own

mateomorris commented 1 year ago

Hmm okay - could you attach or DM me the site file?