rigor789/vue-scrollto

Error during build (Typescript version)

開放

#119 建立於 2019年2月12日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (114 個分叉)batch import
help wanted

倉庫指標

星標
 (1,966 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

When I do npm run serve, I do not see any issues but when I build the application with npm run build, I get the following error:

42:22 Could not find a declaration file for module 'vue-scrollto'. '/Users/project/node_modules/vue-scrollto/vue-scrollto.js' implicitly has an 'any' type.
  Try `npm install @types/vue-scrollto` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-scrollto';`

  > 42 | import ScrollTo from 'vue-scrollto';
       |                      ^
    43 |
    44 | @Component({
    45 |   components: {

 ERROR  Build failed with errors.

貢獻者指南