question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Describe the bug

Meta duplicate is back

Reproduction

https://github.com/thousandsofraccoons/double-meta

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 2.39 GB / 15.87 GB
  Binaries:
    Node: 16.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.26)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.86
    @sveltejs/adapter-vercel: ^1.0.0-next.81 => 1.0.0-next.81
    @sveltejs/kit: next => 1.0.0-next.532
    svelte: ^3.46.0 => 3.52.0
    vite: ^3.1.0 => 3.2.2

Severity

serious, but I can work around it

Additional Information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dummdidummcommented, Nov 7, 2022

If you pre-rendered static site ships without any JavaScript (export const csr = false) and therefore hydration isn’t needed, then you can turn it on. Good point about the example, will update the docs.

0reactions
zerodevxcommented, Nov 7, 2022

The suggested html-minifier config in the svelte-kit docs include removeComments: true so should that be corrected? Or perhaps there’s a whitelist of patterns that minifier should ignore?

It’s not clear from the docs that HTML comment nodes are required for hydration - or any other functions.

Lastly, does this also apply if the project is built as a pre-rendered static site - where html-minifier is run not as a hook but as a post-build task?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What You Need to Know About Duplicate Meta Descriptions
If more than two meta descriptions on your site are identical, or at least similar, they are considered a duplicate. This is most...
Read more >
How do I fix duplicate meta tags? - Yoast
Unique URLs with duplicate meta tags · Change the title of pages to distinguish between the duplicate pages. · Add a Canonical URL...
Read more >
Why Duplicate Meta Titles and Descriptions Hurt Your Site
You may have heard that having duplicate Meta descriptions on your site won't get you penalised by Google, and that is partially true....
Read more >
Duplicate Meta Descriptions: How harmful are they?
Duplicate meta descriptions are meta descriptions with the same text that appear across multiple pages on a website.
Read more >
Fixing the Error "Duplicate Meta Titles" in SEO with Siteimprove
You should avoid duplicate page titles (meta titles) on your website because the more duplicate content and duplicate page titles (meta ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found