Subscribe on changes!

Migration inline-template by option #1 (Use <script> tag) not working

avatar
May 9th 2021

Version

3.0.11

Reproduction link

https://codesandbox.io/s/vue3-migration-inline-template-2vn13

Steps to reproduce

Followed manual https://v3.vuejs.org/guide/migration/inline-template-attribute.html#option-1-use-script-tag index.js

...
const MyTestComponent = {
  template: "#my-comp-template"
};
app.component("my-test-component", MyTestComponent);
...

index.html

<my-test-component>
        <script type="text/html" id="my-comp-template">
          <b>ACCEPTED</b>
        </script>
</my-test-component>

What is expected?

Display ACCEPTED

What is actually happening?

Console warnings: Vue warn]: Template compilation error: Tags with side effect (