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

Error in render: "TypeError: Cannot read property '1' of undefined" #4

Open
nuochong opened this issue Feb 18, 2021 · 1 comment
Open

Comments

@nuochong
Copy link

nuochong commented Feb 18, 2021

vue2 components

<template>
  <div>
    <button @click="test()">
      Open full screen modal! (With teleport!)
    </button>
  </div>
</template>

vue3 use

import toVue3 from 'vue-2-3/to-vue-3';
import Vue2 from 'vue2';
import * as Vue3 from 'vue';

toVue3.register(Vue2, Vue3);
import HelloWorld from '../../../vue-test-2/src/components/HelloWorld'
let hello = toVue3(HelloWorld)
export default {
  name: 'Home',
  components: {
    HelloWorld:hello
  }
}

dom
image

error
image

version
win10 x64
vue@^3.0.2
vue@^2.6.12

@privatenumber
Copy link
Owner

privatenumber commented Feb 20, 2021

Thanks for the issue @nuochong

I tried reproducing your error here but it seems to work fine.

Can you provide a CodePen reproduction or a minimal reproduction repo?

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