Comment insertion does not work

When writing a component, you need to make markup <!-- noindex -->

    <!-- noindex -->
    <!-- /noindex -->

  export default {
    comments: true,

when setting the comments parameter: true - there is no comment.
What am I doing wrong?

What is your vue.js versions? It is new in 2.4.0+ and only available in the full build, with in-browser compilation.

vue 2.6.10
nuxt 2.7.1

Did I understand correctly that when building ssr it will not work?


Adding that I WAS having the same issue with:

vue 2.6.6
vue-server-renderer 2.6.6

Solution: add comments attribute to template tag

<template comments>
<div><!-- This comment will now render --></div>