We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.5.18-beta.0
https://github.com/Akryum/vue-2-5-18-beta-0-syntax-error
Write a template that has a v-if, which contains a component with a v-for:
<template v-if="list.length"> <Foo v-for="(letter, index) of list" :key="index" /> </template>
Compiles fine
error in ./src/components/TestError.vue?vue&type=template&id=56272718& Syntax Error: SyntaxError: Unexpected token (1:157) @ ./src/components/TestError.vue?vue&type=template&id=56272718& 1:0-383 1:0-383 @ ./src/components/TestError.vue @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js& @ ./src/App.vue?vue&type=script&lang=js& @ ./src/App.vue @ ./src/main.js @ multi ./src/main.js ERROR Build failed with errors.
The text was updated successfully, but these errors were encountered:
use v-show replace v-if, because v-if is false ,the document is inexistence, so v-for will error
Sorry, something went wrong.
Already fixed #9142
Woops 😸
No branches or pull requests
Version
2.5.18-beta.0
Reproduction link
https://github.com/Akryum/vue-2-5-18-beta-0-syntax-error
Steps to reproduce
Write a template that has a v-if, which contains a component with a v-for:
What is expected?
Compiles fine
What is actually happening?
The text was updated successfully, but these errors were encountered: