Skip to content

fix(sveltekit): Ensure Sentry example page renders correct Html - #688

Merged
Lms24 merged 4 commits into
masterfrom
lms/fix-sveltekit-example-page-html
Oct 16, 2024
Merged

Lms24 merged 4 commits into
masterfrom
lms/fix-sveltekit-example-page-html

Conversation

@Lms24

@Lms24 Lms24 commented Oct 15, 2024 •

Copy link
Copy Markdown
Member

SvelteKit in newer versions with the Svelte 5 preview enabled throws an error when a page includes a <head> tag if the base app.html template also contains <head> (which it does by default). This PR therefore removes the <head> tag from our example page template and only leaves the <title> element top-level (which still works).

Also removed the <h1> around the <svg> b/c SvelteKit accessibility checker emitted a warning about it (h1 should always contain text)

@Lms24 Lms24 self-assigned this Oct 15, 2024
@Lms24
Lms24 requested review from a team, AbhiPrasad and mydea and removed request for a team October 15, 2024 10:55
@Lms24
Lms24 force-pushed the lms/fix-sveltekit-example-page-html branch from 56cd80c to 9ba81c8 Compare October 15, 2024 11:01
@Lms24
Lms24 requested review from s1gr1d and removed request for mydea October 15, 2024 11:02
@Lms24
Lms24 merged commit a336d1a into master Oct 16, 2024
@Lms24
Lms24 deleted the lms/fix-sveltekit-example-page-html branch October 16, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants