18910140161

Typescript 引入 router 出現類型錯誤

顺晟科技

2022-09-03 12:09:55

141

很奇怪的問題


顺晟科技:

Argument of type ‘Router’ is not assignable to parameter of type ‘Plugin_2’.Type ‘Router’ is not assignable to type ‘{ install: PluginInstallFunction; }’.Types of property ‘install’ are incompatible.Type ‘(app: App) => void’ is not assignable to type ‘PluginInstallFunction’.Types of parameters ‘app’ and ‘app’ are incompatible.Type ‘App’ has no properties in common with type ‘App’.ts(2345)

相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航