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

_vm._self is undefined #25

Open
lijie97 opened this issue Nov 18, 2020 · 1 comment
Open

_vm._self is undefined #25

lijie97 opened this issue Nov 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@lijie97
Copy link

lijie97 commented Nov 18, 2020

Using vue3, we tried to run the example

<template>
<Plotly :data="data" :layout="layout" :display-mode-bar="false"></Plotly>
</template>

<script>

import { Plotly } from 'vue-plotly'

export default {
  components: {
    Plotly
  },
  data:()=>({
    data:[{
      x: [1,2,3,4],
      y: [10,15,13,17],
      type:"scatter"
    }],
    layout:{
      title: "My graph"
    }
  })
}
</script>

but, we got

Uncaught TypeError: _vm._self is undefined
    render vue-plotly.umd.js:209952
    renderComponentRoot runtime-core.esm-bundler.js:696
    componentEffect runtime-core.esm-bundler.js:4035
    reactiveEffect reactivity.esm-bundler.js:42
    effect reactivity.esm-bundler.js:17
    setupRenderEffect runtime-core.esm-bundler.js:4018
    mountComponent runtime-core.esm-bundler.js:3976
    processComponent runtime-core.esm-bundler.js:3936
    patch runtime-core.esm-bundler.js:3547
    componentEffect runtime-core.esm-bundler.js:4053
    reactiveEffect reactivity.esm-bundler.js:42
    effect reactivity.esm-bundler.js:17
    setupRenderEffect runtime-core.esm-bundler.js:4018
    mountComponent runtime-core.esm-bundler.js:3976
    processComponent runtime-core.esm-bundler.js:3936
    patch runtime-core.esm-bundler.js:3547
    mountChildren runtime-core.esm-bundler.js:3736
    mountElement runtime-core.esm-bundler.js:3659
    processElement runtime-core.esm-bundler.js:3631
    patch runtime-core.esm-bundler.js:3544
    componentEffect runtime-core.esm-bundler.js:4053
    reactiveEffect reactivity.esm-bundler.js:42
    effect reactivity.esm-bundler.js:17
    setupRenderEffect runtime-core.esm-bundler.js:4018
    mountComponent runtime-core.esm-bundler.js:3976
    processComponent runtime-core.esm-bundler.js:3936
    patch runtime-core.esm-bundler.js:3547
    render runtime-core.esm-bundler.js:4634
    mount runtime-core.esm-bundler.js:2985
    mount runtime-dom.esm-bundler.js:1208
    <anonymous> main.js:4
    js app.js:1137
    __webpack_require__ app.js:849
    fn app.js:151
    1 app.js:1150
    __webpack_require__ app.js:849
    checkDeferredModules app.js:46
    <anonymous> app.js:925
    <anonymous> app.js:928
@David-Desmaisons
Copy link
Owner

this component is currently not vue 3 compatible.

@David-Desmaisons David-Desmaisons added the enhancement New feature or request label Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants