<SanityContent> Duplicate keys detected
See original GitHub issueFor 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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Thanks! Should be fixed in v0.9.4 ❤️