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(typescript): add assertVersion to typescript since it relies on router, fixes #4291 #4318

Closed
wants to merge 1 commit into from

Conversation

pksunkara
Copy link
Contributor

No description provided.

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry but this doesn't work.
The bug happens when typescript plugin is added without router plugin being present.
It is because the Home.vue template extends cli-plugin-router/src/views/Home.vue and the parent file does not exist in that case. In the past, the parent template resided in cli-service package so it was never a problem.
IMO, a fix can be landed in GeneratorAPI, the parent template should be loaded only after the when condition being evaluated as truthy.

@haoqunjiang
Copy link
Member

Closed in favor of #4330

@pksunkara pksunkara deleted the fix-4291 branch July 25, 2019 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants