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.

<SanityContent> Duplicate keys detected

See original GitHub issue

For any block content from sanity, if the block content contains <strong> marks (bold text) Nuxt will throw a warning in development (browser console):

vue.runtime.esm.js?2b0e:619 [Vue warn]: Duplicate keys detected: ''. This may cause an update error.

found in

---> <SanityContent>

In my component, all I do is:

<SanityContent  :blocks="blocktext"  />

where blocktext is the block content from Sanity. The text renders ok in the front-end though.

Why is this happening? Am I doing something wrong?

Version

module: 0.9.0 (and previously 0.7.1) nuxt: 2.15.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
TimHill83commented, May 15, 2021

Many thanks. Keep up the good work!

Sent from my phone. Apologies in advance for brevity and any typos.


From: Daniel Roe @.> Sent: Saturday, May 15, 2021 3:39:55 PM To: nuxt-community/sanity-module @.> Cc: Tim Hill @.>; Mention @.> Subject: Re: [nuxt-community/sanity-module] <SanityContent> Duplicate keys detected (#116)

Thanks! Should be fixed in v0.9.4 ❤️

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/nuxt-community/sanity-module/issues/116#issuecomment-841668846, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKYJW6YOXA35MCEVVCF7OG3TN2BTXANCNFSM42Y2JU2Q.

0reactions
danielroecommented, May 15, 2021

Thanks! Should be fixed in v0.9.4 ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

<SanityContent> Duplicate keys detected · Issue #116 - GitHub
vue.runtime.esm.js?2b0e:619 [Vue warn]: Duplicate keys detected: ''. This may cause an update error. found in ---> <SanityContent>.
Read more >
Build your first blog using React | Sanity.io guide
Build a blog in React from scratch! We'll use Sanity for the content management and Tailwind CSS for styling.
Read more >
How to use Sanity.io as a Headless CMS in Next.js - Pieces.app
Once signed in, click on the Sanity project we are working with, and you will find your project ID. Copy the project ID...
Read more >
SEO and Sanity - Tinloof
Although Google uses machine learning to detect what an image is about, ... based on a field like Title, and configured to avoid...
Read more >
Self-Hosting Sanity Studio with GitHub Actions
To copy the public key to DreamHost, run this command: ... your installed Sanity Studio instance to access your Sanity content dataset, ...
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