A document must not include more than one “meta” element with a “charset” attribute.

Versions

  • nuxt: “nuxt”: “2.14.12”, => problem
  • node: v12.20.0 –>

“nuxt”: “2.14.5”, => no problem

Reproduction

I think the minimum scenario to reproduce is:

  • use last version of nuxt
  • nuxt generate (reproduced in static generated app)
  • inspect they should be 2 of them.

Capture d’écran 2020-12-20 à 16 13 51

it’s needed, my repo: https://github.com/trollepierre/recontact_travel_blog/tree/dev/front

https://github.com/trollepierre/recontact_travel_blog/blob/dev/front/nuxt.config.js

Steps to reproduce

I think the minimum scenario to reproduce is:

  • use last version of nuxt
  • nuxt (reproduce in yarn dev, and in static generated app)
  • inspect they should be 2 of them.

What is Expected?

I expect to see only one meta charset and no html5-validator error

What is actually happening?

there are 2 meta charset div in my html

this one needs to be removed:

1 possible answer(s) on “A document must not include more than one “meta” element with a “charset” attribute.

  1. @trollepierre The second one is almost certainly added by @nuxtjs/pwa. You should either remove the one you added manually or add a hid=charset property to the object. (This will be used by vue-meta for deduplicating.)