nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

Webstorm showing type error: Cannot resolve symbol 'Prop' #91

Closed kc980602 closed 3 years ago

kc980602 commented 3 years ago

Hi, I am using Webstorm and having the following error Not sure what's the problem is, but it seems that Webstorm are not resolving type def with export {} from "vue-property-decorator"

image

This is the current type def from this package:

export { Module, getModule, VuexModule, Mutation as VuexMutation, MutationAction, Action as VuexAction, } from "vuex-module-decorators";
export { State, Getter, Action, Mutation, namespace } from "vuex-class";
export { Emit, Inject, InjectReactive, Model, ModelSync, Prop, PropSync, Provide, ProvideReactive, Ref, VModel, Watch, } from "vue-property-decorator";

After I change the type def to the following, the error is gone:

import { Module, getModule, VuexModule, Mutation as VuexMutation, MutationAction, Action as VuexAction, } from "vuex-module-decorators";
import { State, Getter, Action, Mutation, namespace } from "vuex-class";
import { Emit, Inject, InjectReactive, Model, ModelSync, Prop, PropSync, Provide, ProvideReactive, Ref, VModel, Watch, } from "vue-property-decorator";

export { Module, getModule, VuexModule, VuexMutation, MutationAction, VuexAction, };
export { State, Getter, Action, Mutation, namespace };
export { Emit, Inject, InjectReactive, Model, ModelSync, Prop, PropSync, Provide, ProvideReactive, Ref, VModel, Watch, };
kc980602 commented 3 years ago

I manage to resolve the issue by clearing WebStorm cache