Same problem as in #160 but doesn't fix that way:
$ typings install --save --ambient firebase
gives:
└── (No dependencies)
and just
$ typings install firebase
gives
typings ERR! message Unable to find "firebase" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/firebase/versions/latest responded with 404, expected it to equal 200
You might be running typings 1.0, which introduced some breaking changes. Try:
$ typings install dt~firebase --global --save
You may also need to update your tsconfig.json from:
"files": [
"typings/main.d.ts"
]
to:
"files": [
"typings/index.d.ts"
]
Thanks, @r-park it helped!
I'm having the same issue here.
typings v1.0.4
node v6.2.0
npm v3.8.9
@r-park you're my hero.
Hi,@r-park, Thanks for your help.
But i have a issue.
My project:
ionic start login --v2 --ts
npm install angularfire2
npm install [email protected]
and
typings dt~firebase --global --save
then shows blow.
firebase
(No dependencies)
Please help me.
@tobujin,I am encountering the same issue.I have used angularfire push() and update() methods they still works fine, despite of the fact ionic-cli is showing bunch of errors like :
Error TS2304: Cannot find name "Firebase"
and more
@UzairNouman, thank you for your response.
It's not fault.
It's normal.
My program works very well.
Could somebody tell me why is it happens why we have to change name from main.d.ts to index.d.ts
@blackhawk389 It just has to do with the Typings update to 1.0.
Most helpful comment
You might be running typings 1.0, which introduced some breaking changes. Try:
You may also need to update your
tsconfig.jsonfrom:to: