Skip to content

Vue3 with render function #625

New issue

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

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

Already on GitHub? # to your account

Open
juztinlazaro opened this issue Sep 13, 2022 · 2 comments
Open

Vue3 with render function #625

juztinlazaro opened this issue Sep 13, 2022 · 2 comments

Comments

@juztinlazaro
Copy link

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
Copy link

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

@nguyenhy
Copy link

nguyenhy commented Oct 8, 2022

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants