You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execute 'vue create vue-issue' and choose the default preset (babel, eslint);
modify App.vue (for instance add a div to the template section);
execute 'vue add @vue/typescript' (version 3.1.1) in the root of the 'vue-issue' folder. Don't use class-style component syntax but do use Babel alongside TypeScript.
What is expected?
App.vue still contains my modifications after adding the typescript plugin.
What is actually happening?
The modifications are not retained.
The text was updated successfully, but these errors were encountered:
That won't really be feasible as we can't merge ts code into your js in a way that works afterwards.
Situations like these are the reason that we have a warning in the docs to commit everything before involving a plugin - then you can use the gif diffs to revert or merge anything that was changed in a way that it broke your code.
It looks like App.vue is replaced with the example template that is appropriate when you create a project but imho has less value when you already have a project. I think that when you apply a plugin afterwards you are more interested in the 'plumping' and less in the examples (at least I was). It would be nice if the plugin could differentiate between the two use cases (initial and afterwards install).
That said, I agree that this is not a bug and that the warning is sufficient.
Version
3.0.3
Node and OS info
Node 8.9.4 / npm 5.6.0 / Windows 10
Steps to reproduce
What is expected?
App.vue still contains my modifications after adding the typescript plugin.
What is actually happening?
The modifications are not retained.
The text was updated successfully, but these errors were encountered: