Describe your question/issue in detail
So I an currently going through a prismic tutorial "Course-Resources-Dark-Modern-Website" to try and learn the technology and how it integrates with Svelte.
I am at the point where I need to use a Custom Type in order to access the data properites of my SettingsDocument.
I used the following suggested menth to import the custom type but this fails and the intellisense doesnt pcik upthe properties and the code fails on 500.
`/** @type {import("@prismicio/client").Content.SettingsDocument} */
export let settings;
<span class="sr-only">{settings.data.website_title}</span>
`
So i then tried this approach:
import type { SettingsDocument } from '../../prismicio-types';
export let settings:SettingsDocument;
<span class="sr-only">{settings.data.website_title}</span>
However from both approaches I get the same error as shown below, even though the second approach does start picking up the proper data. types in the intellisense, Any ideas where im going wrong here?
[vite:dev] TypeError: Cannot read properties of undefined (reading 'data')
[vite:dev] at Footer (/home/src/lib/components/Footer.svelte:15:45)