Javascript Vue 3类型错误(owl转盘)

Javascript Vue 3类型错误(owl转盘),javascript,typescript,vue.js,typescript-typings,owl-carousel,Javascript,Typescript,Vue.js,Typescript Typings,Owl Carousel,我目前正在VUE3中使用typescript。 我想使用vue owl库() 但是,我收到一条消息,我需要声明它,我做了如下操作: tsconfig.json "compilerOptions": { ... "include": [ ... "src/owl/index.d.ts" ], ... } 猫头鹰指数 declare module "vue-owl-carousel&quo

我目前正在VUE3中使用typescript。 我想使用vue owl库()

但是,我收到一条消息,我需要声明它,我做了如下操作:

tsconfig.json

"compilerOptions": {
    ...
  "include": [
    ...
    "src/owl/index.d.ts"
  ],
  ...
  }
猫头鹰指数

declare module "vue-owl-carousel";
vue组件

<template>
  <div class="hello">
    <carousel>
      <img src="https://placeimg.com/200/200/any?1">
      <img src="https://placeimg.com/200/200/any?2">
      <img src="https://placeimg.com/200/200/any?3">
      <img src="https://placeimg.com/200/200/any?4">
    </carousel>
  </div>
</template>

<script lang="ts">
import { Options, Vue } from "vue-class-component";

import carousel from "vue-owl-carousel";

@Options({
  components: {
    carousel
  }
})
...
</script>

从“Vue类组件”导入{Options,Vue};
从“vue owl转盘”导入转盘;
@选择权({
组成部分:{
旋转木马
}
})
...
当我打开页面时,会看到一个空白页面,在控制台中会出现以下错误:

您解决了这个问题吗?您解决了这个问题吗?