-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
remove emitDecoratorMetadata from tsconfig.json #1708
Comments
@doppelreim vue-router does not have an export called Route, there is just the default export which is VueRouter.
|
@Akryum and please do not remove the default emitDecoratorMetadata=true as it is required by other packages. |
from your augmented components/HelloWorld.vue:
|
I'm confused... What I want to have is a watcher on
I think, that is a reasonable thing to want?
Apart from that: |
Is there anything I can do to get this issue resolved (in whatever form)? |
The flag defaults to true because it was required by |
@doppelreim have you tried with the latest rc7? I have just set up a new project using that, added It compiles just fine, without tsc complaining about anything. And overcome this obsession with the decorator metadata, this has nothing to with it. |
@doppelreim I then added the above method incl. the watch decorator to the HelloWorld component, ran |
I updated vue-cli to The issue is solved for me :) |
Version
3.0.0-rc.3
Reproduction link
kaorun343/vue-property-decorator#107
Steps to reproduce
This is the initial bug-report: #1498
There was nothing that could be done in
vue-cli
to fix it, but I was redirected tovue-property-decorator
.I opened kaorun343/vue-property-decorator#107 and a new version was released.
The new version does not use
reflect-metadata
anymore. That means, it does not rely onemitDecoratorMetadata
any more.In fact, when
emitDecoratorMetadata
is enabled, warnings are thrown.vue-cli
enablesemitDecoratorMetadata
here:vue-cli/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json
Line 9 in 05391b6
Could that be removed?
What is expected?
There should be no warnings.
What is actually happening?
There are warnings.
The text was updated successfully, but these errors were encountered: