1amageek / pring.ts

Cloud Firestore model framework for TypeScript - Google
https://firebase.google.com/docs/firestore/
MIT License
108 stars 7 forks source link

Vue + tsで開発していると急にCannot find module '@google-cloud/firestore'.がでる #38

Closed kahirokunn closed 5 years ago

kahirokunn commented 5 years ago

printのバージョン "pring": "0.21.4",

こんな感じのえらーエラーがでる。 とても困った。。。(´;ω;`)

2018-11-02 14 31 39

一応 yarn add @google-cloud/firestore してみたけど消えなかった。(´;ω;`)

ERROR in /Users/k-okina/Documents/minkore_firebase/node_modules/pring/lib/base.d.ts
1:36 Cannot find module '@google-cloud/firestore'.
  > 1 | import * as FirebaseFirestore from '@google-cloud/firestore';
      |                                    ^
    2 | import * as firebase from 'firebase/app';
    3 | import 'firebase/auth';
    4 | import 'firebase/firestore';
ERROR in /Users/k-okina/Documents/minkore_firebase/node_modules/pring/lib/batch.d.ts
1:36 Cannot find module '@google-cloud/firestore'.
  > 1 | import * as FirebaseFirestore from '@google-cloud/firestore';
      |                                    ^
    2 | import { DocumentReference, WriteBatch, SetOptions, UpdateData, DocumentData } from './base';
    3 | export declare enum BatchType {
    4 |     save = 0,
kahirokunn commented 5 years ago

一応リロードしたら治ったりするんですが、良くない状態のはずですのでなんか対応したい。。。所

kahirokunn commented 5 years ago

最新版使ったらなんかでなくなったので一旦クローズ