Skip to content

[Vue warn]: Component is missing template or render function. #5849

@HHN0609

Description

@HHN0609

Version

3.2.33

Reproduction link

github.com/HHN0609/vue-report

Steps to reproduce

  1. git clone https://github.com/HHN0609/vue-report.git
  2. cd vue-report
  3. npm install
  4. npm run dev
  5. if it goes will, you can see "123123" in your browser.
  6. open App.vue in vue-report/demo/src
  7. type some code even annotation into "<script setup lang="ts"></script>"
  8. you will find that "123123" disappear. And press the F12, there is a warning in the console which is the same as this issue title

What is expected?

After typing some codes into <script> tag, the "123123" should still appear.

What is actually happening?

After typing some codes into <script> tag, the "123123" disappear.


I think vue3 can not operate with typescript perfectly. It still need to be improved.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions