-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors upon encountering schema.org markup #305
Comments
I found it can be worked around with the |
Hmmmm, should the |
I think I'd probably just ignore unrecognized language types instead since it'd probably be hard to come up with a complete list of ones to whitelist |
@benmccann That makes total sense 😅 will do it soon. |
@benmccann 's answer is good (e.g. it compiles), but is probably not enough if you are trying to make a schema dynamically. I found an article that really nailed the job for me so I just wanted to share: |
Describe the bug
Google recommends using schema.org JSON-LD markup so that they can better understand your website, but
svelte-preprocess
barfs upon encountering itLogs
The error was encountered at:
svelte-preprocess/src/autoProcess.ts
Line 72 in 5fe9a43
To Reproduce
Paste the example
<script type="application/ld+json">
from https://developers.google.com/search/docs/guides/intro-structured-data into an appExpected behavior
svelte-preprocess
should proceed silently when encountering an unrecognized script typeStack
The text was updated successfully, but these errors were encountered: