0

Nuxt's module reload doesn't work because of discrepancies between the DOM and Virtual DOM.

The issue seems related to comments somehow:

enter image description here

I tried these configs to get Nuxt to not extract or remove comments and just leave them as is:

terser: false,
  html:{
    minify: {
    collapseBooleanAttributes: false,
    decodeEntities: false,
    minifyCSS: false,
    minifyJS: false,
    processConditionalComments: false,
    removeEmptyAttributes: false,
    removeRedundantAttributes: false,
    trimCustomFragments: false,
    useShortDoctype: false,
    html5: false,
    removeComments: false,
  }
},
kissu
  • 24,311
  • 11
  • 36
  • 67
Seif
  • 496
  • 2
  • 9
  • 20
  • 1
    You're looking at the bad place. It's not a config issue here. Rather, the actual content of your template. Please give a read to my answer here: https://stackoverflow.com/a/67978474/8816585 – kissu Nov 26 '21 at 16:20

0 Answers0