vue2.6.11中使用出错 #158
Unanswered
unicycle-master
asked this question in
Q&A
Replies: 2 comments 2 replies
-
"wujie-vue2": "^1.0.0-rc.16" 一样 |
Beta Was this translation helpful? Give feedback.
0 replies
-
感觉是 typescript 出错了,可以给一个最小复现的 demo 吗? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"wujie-vue2": "^1.0.0-rc.12"
使用:
import WujieVue from "wujie-vue2";
Vue.use(WujieVue)
报错:
No overload matches this call.
Overload 1 of 2, '(plugin: PluginObject | PluginFunction, options?: unknown): VueConstructor', gave the following error.
Argument of type '{ bus: EventBus; setupApp: (options: cacheOptions) => void; preloadApp: (preOptions: preOptions) => void; destroyApp: (id: string) => void; install: (Vue: Vue) => void; }' is not assignable to parameter of type 'PluginObject | PluginFunction'.
Type '{ bus: EventBus; setupApp: (options: cacheOptions) => void; preloadApp: (preOptions: preOptions) => void; destroyApp: (id: string) => void; install: (Vue: Vue) => void; }' is not assignable to type 'PluginObject'.
Types of property 'install' are incompatible.
Type '(Vue: Vue) => void' is not assignable to type 'PluginFunction'.
Types of parameters 'Vue' and 'Vue' are incompatible.
Type 'VueConstructor' is missing the following properties from type 'Vue': $el, $options, $parent, $root, and 37 more.
Overload 2 of 2, '(plugin: PluginObject | PluginFunction, ...options: any[]): VueConstructor', gave the following error.
Argument of type '{ bus: EventBus; setupApp: (options: cacheOptions) => void; preloadApp: (preOptions: preOptions) => void; destroyApp: (id: string) => void; install: (Vue: Vue) => void; }' is not assignable to parameter of type 'PluginObject | PluginFunction'.
Type '{ bus: EventBus; setupApp: (options: cacheOptions) => void; preloadApp: (preOptions: preOptions) => void; destroyApp: (id: string) => void; install: (Vue: Vue) => void; }' is not assignable to type 'PluginObject'.
Types of property 'install' are incompatible.
Type '(Vue: Vue) => void' is not assignable to type 'PluginFunction'.
Types of parameters 'Vue' and 'Vue' are incompatible.
Type 'VueConstructor' is not assignable to type 'Vue'.
Beta Was this translation helpful? Give feedback.
All reactions