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

vModelText is not defined in 3.0.0-alpha.5 #740

Closed
cexbrayat opened this issue Feb 18, 2020 · 0 comments · Fixed by #743
Closed

vModelText is not defined in 3.0.0-alpha.5 #740

cexbrayat opened this issue Feb 18, 2020 · 0 comments · Fixed by #743

Comments

@cexbrayat
Copy link
Member

Version

3.0.0-alpha.5

Reproduction link

https://github.com/cexbrayat/missing-v-model

Steps to reproduce

A simple component looking like:

<template>
  <div id="app">
    <input v-model="user" />
  </div>
</template>

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

export default defineComponent({
  name: "app",
  setup() {
    return { user: "Cédric" };
  }
});
</script>

with Vue 3.0.0-alpha.5 is throwing at runtime with:

runtime-core.esm-bundler.js?5c40:342 ReferenceError: vModelText is not defined
    at Proxy.render (App.vue?3dfd:3)
    at renderComponentRoot (runtime-core.esm-bundler.js?5c40:467)
    at componentEffect (runtime-core.esm-bundler.js?5c40:2477)
    at run (reactivity.esm-bundler.js?a1e9:96)
    at reactiveEffect (reactivity.esm-bundler.js?a1e9:77)

The repro linked is a simple repo with this component.
Downgrading to Vue 3.0.0-alpha.4 makes it work again.

What is expected?

It should find the runtime helper

What is actually happening?

It throws an error


The same happens with vModelSelect and probably other runtime helpers.

underfin added a commit to underfin/vue-next that referenced this issue Feb 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant