-
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
Ionic 2.0.0-rc.0 support #578
Comments
I'm trying the same, here is what i've got so far: Import the AngularFireModule in app.module.ts:
After that for me the AOT Compilation failed, with the error:
EDIT: #565 (comment) seems to have a better solution to make AOT Compilation work! ill try it now. so i just added initApp auth and database to the exports of firebase-browser.js
But now when i run the code i get "cant call navigation on undefied" errors :/ |
@alejandrocao @AwsmOli It seems that the current workaround for this can be found with issue If you follow along with this issue, then you will be able to do an ionic serve, but will receive a console error of
The solution it seems is to remove strict mode in the rollup config #511 I think this should still be a open issue though, as it seems the #511 was close about 12 days ago because it originally started as a different issue. Edit: The rollup config they are referencing in that issue is the one from #545 located at:
|
Here is a solution posted by Juan Suarez on his blog which worked for me. https://playcode.org/getting-started-with-ionic-2-rc0-firebase-3-angularfire-2/ |
Hey, It works for me but anyone found a solution how to get rid of the console error ? 'is strongly discouraged, as it poses security risks and may cause issues with minification' Adding 'useStrict: false' Didnt solve the issue. |
Also notice that Ionic rc.0 now uses TypeScript version 2. In TypeScript v2 type definition files are installed via npm, the typings tool is no longer used. I've tried |
Hi guys. Not sure if this is under the same scope of the original issue (or if the problem belongs to Angular). In Ionic 2 Beta 11 I ran a
Now that Ionic has updated to RC0 I am not able to successfully bootstrap this extended service, resulting in an error such as Any advice on how to resolve this? I am thinking that I am not properly defining some providers required for |
@barbsicle are you using angularfire2 ? |
@miguelcostero Of course. I also followed the blogpost you linked which worked fine for me except for some warning messages in the console. |
has anyone tried running ionic in production mode? for instance ionic build I am getting: ngc error: Error: Error at .../node_modules/angularfire2/interfaces.d.ts:9:23: Cannot find namespace 'firebase'. In dev mode everything works like expected, so I guess it might be somehow connected with minification of evals. |
Ok, if anyone have problems with this error: ngc error: Error: Error at .../node_modules/angularfire2/interfaces.d.ts:9:23: Cannot find namespace 'firebase'. the problem is with typings, node_modules/@types/firebase/index.d.ts contains 2.4 version, but we use firebase 3 version. Quick workaround fix is to replace this file with node_modules/angularfire2/firebase3.d.ts. |
I have fixed my issue above by creating a new project (did not change any source code, don't know what went wrong). However, now I still cannot do an
The string in question is |
Here's an ionic2 RC0 sample app using AngularFire2. I hope this helps some of you! Credit where it's due: This sample app is the result of what I found in Juan Suarez blog post and Jorge Vergara's article and a few StackOverflow incidents out there |
@gigocabrera your example will not work when you update your node packages |
@kleeb I agree. I just wanted to get it working first. Now I can find a different way to make the changes permanent. |
@gigocabrera You can make a custom Also, I am currently using the guide in this repo to implement angularfire2 in my project and it's working great. |
@barbsicle thank you so much 👍 |
There is a problem with iOS native: #581 |
Yesterday Ionic 2.0.0-rc.0 was released. I'm trying to migrate my project to this version but I couldn't install angularfire2 in a new Ionic 2 project.
The steps I was following for previous version were:
Add to package.json
Install Firebase:
Add to app.ts
app.ts doesn't exist in new Ionic 2 projects, and I couldn't find ionicBootstrap function in app.module.ts and app.component.ts
npm --version
3.10.5
typings --version
1.4.0
ng --version
angular-cli: 1.0.0-beta.16
node: 6.3.0
os: win32 x64
ionic --version
2.1.0
ionic info
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v6.3.0
The text was updated successfully, but these errors were encountered: