rigor789/vue-scrollto

Error during build (Typescript version)

オープン

#119 opened on 2019/02/12

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (114 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (1,966 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド