-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase3.d.ts(33,50): error TS2304: Cannot find name 'Promise'. #246
Comments
Forgot a couple potentially useful notes:
|
Thanks, I think we need to update the guides to mention installation of the promise typings. |
What is the solution then ? |
@joni8a |
Tanks, but when I do it I get this error: When I change --ambient to --globale I get: So I remove the --globale, but then I get no dependencies: To be honest I am not really clear on this typings thing, any help greatly appreciated :) |
I tried this: This is what I did: I dont get any errors if I set the target to es6, but then the code is not translated to javascript. |
facing the same problem any help plz...:/ |
You'll need to add a reference to the files array of your tsconfig.json.
|
When attempting to use the AngularFire2 guide here, I run into this error after adding
"node_modules/angularfire2/firebase3.d.ts"
into mytsconfig.json
file.No other action seems to be necessary, other than including the typings. Steps to repro are very simple:
git clone https://github.com/katowulf/ng2repro.git
npm install
tsc
(or same error vianpm start
)firebase3.d.ts
line fromtsconfig.json
Tried various permutations of
systemjs.config.js
andmain.ts
. Most of them are still commented in the files for reference.The text was updated successfully, but these errors were encountered: