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

TypeError: h is not a function #1359

Open
potatoeggy opened this issue Aug 26, 2021 · 1 comment
Open

TypeError: h is not a function #1359

potatoeggy opened this issue Aug 26, 2021 · 1 comment

Comments

@potatoeggy
Copy link

potatoeggy commented Aug 26, 2021

Describe the bug
The library errors with "Uncaught TypeError: h is not a function"

[Vue warn]: Unhandled error during execution of render function 
  at <VglRenderer> 
  at <App>

Uncaught TypeError: h is not a function
    render vue-gl.esm.js:3233
    renderComponentRoot runtime-core.esm-bundler.js:1168
    componentEffect runtime-core.esm-bundler.js:5214
    reactiveEffect reactivity.esm-bundler.js:42
    effect reactivity.esm-bundler.js:17
    setupRenderEffect runtime-core.esm-bundler.js:5167
    mountComponent runtime-core.esm-bundler.js:5126
    processComponent runtime-core.esm-bundler.js:5084
    patch runtime-core.esm-bundler.js:4690
    componentEffect runtime-core.esm-bundler.js:5221
    reactiveEffect reactivity.esm-bundler.js:42
    effect reactivity.esm-bundler.js:17
    setupRenderEffect runtime-core.esm-bundler.js:5167
    mountComponent runtime-core.esm-bundler.js:5126
    processComponent runtime-core.esm-bundler.js:5084
    patch runtime-core.esm-bundler.js:4690
    render runtime-core.esm-bundler.js:5804
    mount runtime-core.esm-bundler.js:4091
    mount runtime-dom.esm-bundler.js:1319
    <anonymous> main.ts:7

Vue bit:

<template>
  <vgl-renderer> </vgl-renderer>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { VglRenderer } from "vue-gl";

export default defineComponent({ components: { VglRenderer } });
</script>

<style scoped></style>

I first tried the sample on the getting started page but the error remained after I removed everything inside the <vgl-renderer> block.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Firefox 91, Chrome 92
  • Version 1.0.0
  • Vue 3
@h-ikeda
Copy link
Member

h-ikeda commented Aug 27, 2021

Sorry but VueGL is NOT compatible with Vue 3 yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants