vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 431 forks source link

Vue3 with render function #625

Open juztinlazaro opened 1 year ago

juztinlazaro commented 1 year ago

is this possible I want to set up a component with a render function and createElement (h)

for some reason, i having an issue

unable to resolve signature of class decorator when called as an expression.
  This expression is not callable.

image

package.json

"dependencies": {
    "core-js": "^3.8.3",
    "vue": "^3.2.13",
    "vue-class-component": "^8.0.0-0",
    "vue-property-decorator": "^9.1.2",
    "vue-router": "^4.0.3"
  },
texasexile commented 1 year ago

I'm having the same problem. No clues yet as to how to solve this problem.

nguyenhy commented 1 year ago

i use "vue-class-component": "^8.0.0-rc.1",

import { Vue, Options } from 'vue-class-component';

@Options({
  inheritAttrs: false,
})
export default class ComponentName extends Vue {

}

but honestly, i think we should use Options API