-
Notifications
You must be signed in to change notification settings - Fork 2.2k
firebase3. ionic 2 error #307
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
Comments
@shamrozwarraich add typings inside typings/index.d.ts like this |
Or you could try do the install method from #234 Here is the specific link |
@imsingh the problem with including it there is that that file is autogenerated by |
@filoxo as u mension in the #234 i followed the setup now i facing these error :/ ionic $ TypeScript error: E:/firebase v3/ionic2-angularfire-sample-firebase3-sup and thnks to all @davideast @jeffbcross @imsingh @dmastag |
What's saved in your |
"globalDependencies": { |
The only other thing I can think of is to delete |
new error :/ ....
|
@filoxo 👎 need help |
Your error is referring to
Assuming you're using typings version |
just make sure that
If you dont have the main.d.ts, then u can just copy index.d.ts and rename it |
Closing because it looks like this was solved. @shamrozwarraich Respond if you still need help. |
+1 ionic $ TypeScript error: E:/firebase v3/ionic2-angularfire-sample-firebase3-sup facing the above issue and the solutions didn't work for me. |
added global firebase3. Now facing error as below ERROR in [default] typings/globals/firebase3/index.d.ts:406:2 |
@sourabhk0510 please create a new issue rather than responding to a closed one and follow the issue template (we can't help without sufficient info to verify and repro the problem) |
Uh oh!
There was an error while loading. Please reload this page.
follow the installation guide and run fine in angular cli ...thanks.. :)
but When attempting to use the AngularFire2 guide in ionic beta facing the cli error .....
also include "files" array in the tsconfig.json file.
"files": [
"node_modules/angularfire2/firebase3.d.ts"
],
E:\firebase v3\ionic2-angularfire-sample>ionic serve
`
Running 'serve:before' gulp task before serve
..............
TypeScript error: E:/firebase v3/ionic2-angularfire-sample/node_modules/angularf
ire2/database/database.d.ts(10,31): Error TS2503: Cannot find namespace 'firebas
e'.
TypeScript error: app/app.ts(18,25): Error TS2345: Argument of type 'string' is
not assignable to parameter of type 'FirebaseAppConfig'.
[01:28:03] Finished 'watch' after 32 s
[01:28:03] Starting 'serve:before'...
[01:28:03] Finished 'serve:before' after 21 μs
Running live reload server: http://localhost:35729
Watching: www//*, !www/lib//*
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
ionic $ 10.5 MB bytes written (37.19 seconds)
TypeScript error: E:/firebase v3/ionic2-angularfire-sample/app/pages/home/home.t
s(42,47): Error TS2339: Property 'displayName' does not exist on type 'TwitterCr
edential'.
TypeScript error: E:/firebase v3/ionic2-angularfire-sample/node_modules/angularf
ire2/database/database.d.ts(9,29): Error TS2503: Cannot find namespace 'firebase
'.......
TypeScript error: app/app.ts(18,25): Error TS2345: Argument of type 'string' is
not assignable to parameter of type 'FirebaseAppConfig'.
10.5 MB bytes written (3.66 seconds)
firebase v3\ionic2-angularfire-sample>typings install --save --ambient firebase
typings ERR! deprecated The "ambient" flag is deprecated. Please use "global" in
stead
E:\firebase v3\ionic2-angularfire-sample>typings install --save --global dt~fire
base
firebase
└── (No dependencies)_
)
The text was updated successfully, but these errors were encountered: