rigor789/vue-scrollto

When I try to build my application the vue-scrollto gives me an error

开放

#546 创建于 2021年6月13日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (114 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (1,966 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I'm using vitejs and typescript and when I try to build I get this error. I tried to reinstall @types/vue-scrollto, but this error persists.

Vue version: 3.0.5; Vitejs version: 2.3.7; Vue-scrollto version: 2.20.0; typescript version: 4.3.2;

Error ⬇️

$ vue-tsc --noEmit && vite build
node_modules/vue-scrollto/vue-scrollto.d.ts:1:9 - error TS2305: Module '"vue"' has no exported member 'DirectiveOptions'.

1 import {DirectiveOptions, PluginObject} from "vue"
          ~~~~~~~~~~~~~~~~

node_modules/vue-scrollto/vue-scrollto.d.ts:1:27 - error TS2305: Module '"vue"' has no exported member 'PluginObject'.

1 import {DirectiveOptions, PluginObject} from "vue"
                            ~~~~~~~~~~~~


Found 2 errors.

error Command failed with exit code 2.

贡献者指南