Elderjs / elderjs

Elder.js is an opinionated static site generator and web framework for Svelte built with SEO in mind.
https://elderguide.com/tech/elderjs/
MIT License
2.12k stars 53 forks source link

error when adding schema markup #264

Closed s-kris closed 1 year ago

s-kris commented 1 year ago

It looks like adding a schema markup script causes a rollup error

Schema

<script type="application/ld+json">
    {
      "@context": "https://schema.org/",
      "@type": "Recipe",
      "name": "Party Coffee Cake",
      "author": {
        "@type": "Person",
        "name": "Mary Stone"
      },
      "datePublished": "2018-03-10",
      "description": "This coffee cake is awesome and perfect for parties.",
      "prepTime": "PT20M"
    }
    </script>

Error

[!] (plugin rollup-plugin-elder) Error: Cannot find module './transformers/ld+json'

Would appreciate any help. Thank you!

s-kris commented 1 year ago

found this: https://www.npmjs.com/package/svelte-meta-tags