Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work with class-style component #5352

Closed
7 tasks done
jimhucksly opened this issue Oct 19, 2021 · 1 comment
Closed
7 tasks done

Don't work with class-style component #5352

jimhucksly opened this issue Oct 19, 2021 · 1 comment

Comments

@jimhucksly
Copy link

jimhucksly commented Oct 19, 2021

Describe the bug

<template>
  <div> Hello World </div>
</template>

<script lang="ts">
import { Vue } from 'vue-class-component'

export default class IndexPage extends Vue {
  //
}
</script>

error

runtime-core.esm-bundler.js:6568 [Vue warn]: Component is missing template or render function. 
  at <Anonymous onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > key="/" > 
  at <BaseTransition mode="out-in" appear=false persisted=false  ... > 
  at <Transition name="page" mode="out-in" > 
  at <NuxtLayout key=0 name=undefined > 
  at <RouterView> 
  at <NuxtPage> 
  at <App> 
  at <Root>

Reproduction

https://gitlab.com/jimhucksly/pitertour/-/tree/master

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10600 CPU @ 3.30GHz
    Memory: 8.05 GB / 15.62 GB
  Binaries:
    Node: 14.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (94.0.992.50)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.3
    vite: ^2.6.10 => 2.6.10

Used Package Manager

npm

Logs

No response

Validations

@sodatea
Copy link
Member

sodatea commented Dec 9, 2021

Fixed by #5374

@sodatea sodatea closed this as completed Dec 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants