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

fix: require parent template after when condition evaluated as truthy #4330

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

haoqunjiang
Copy link
Member

fixes #4291

@haoqunjiang haoqunjiang merged commit a1c88ed into vuejs:dev Jul 22, 2019
cexbrayat added a commit to cexbrayat/vue-cli that referenced this pull request Jul 29, 2019
The recent refactoring in vuejs#4330 introduced a regression where a `Home.vue` file was generated if using the TS plugin even without the router plugin. This happened because the result from the ejs rendering was `undefined`. This fixes the issue by not generating a file if the content is `undefined`.
cexbrayat added a commit to cexbrayat/vue-cli that referenced this pull request Jul 29, 2019
The recent refactoring in vuejs#4330 introduced a regression where a `Home.vue` file was generated if using the TS plugin even without the router plugin. This happened because the result from the ejs rendering was `undefined`. This fixes the issue by returning an empty string instead, which will not be written.
cexbrayat added a commit to cexbrayat/vue-cli that referenced this pull request Jul 29, 2019
The recent refactoring in vuejs#4330 introduced a regression where a `Home.vue` file was generated if using the TS plugin even without the router plugin. This happened because the result from the ejs rendering was `undefined`. This fixes the issue by returning an empty string instead, which will not be written.
haoqunjiang added a commit that referenced this pull request Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find module '@vue/cli-plugin-router/generator/template/src/views/Home.vue'
1 participant