-
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
Error with "ng build && ng serve" following "Installation and Setup" guide #461
Comments
There was a mismatch on the docs. Can you check out our quickstart now and see if that helps? Basically you'll need to make sure you're on |
I'll make a check in a few moments. Thank you! |
With webpack it's more simple to install, but unfortunately I still receive some errors. |
Sorry there was a typo in the docs, it's actually a lowercase Try again and let me know what happens. |
Thank you very much for your quick responses. I still receiving some errors from TypeScript regarding 'firebase' This is the main message: Below is the whole list of errors(terminal):
. Browser:I use a package for TypeScript in Atom and I don't receive any errors from it. |
I have the same error. |
@sorcamarian @GitHubish You need to remove Check out @ericjim's solution: #414 (comment) |
I deleted |
Same stuff, even after these changes(view repository), at both I tested different situations in both tsconfig.json files, with/without
Maybe it's something from: I also made tests with I'll try again from the start, maybe i'm missing something. |
@sorcamarian @GitHubish The problem is that you're likely not on TypeScript 2.0+. I cloned @sorcamarian's repo and after fixing the syntax errors in platformBrowserDynamic().bootstrapModule(MyAppModule); Please upgrade to TypeScript 2.0 locally and globally to be safe, and try again. npm install -g typescript@next
npm install typescript@next --save-dev |
Thank you very much. ☺✌ I'll try in a few minutes. |
After updated typescript in the latest version ie 2.1.0 (I was version 2.0 before ), I have a multitude of typescript error. Example: And: |
I always look ... Thank you anyway for the help you are trying to bring us. The error occurs when I add diced Yet I recreated a project entirely based on the documentation Thanks EDIT: |
I have successfully run my test project.
but it is not blocking . If I can still help before leaving, I recreated a basic project being careful this time to install main.ts import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppModule, environment } from './app/';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule); app.module.ts import { BrowserModule } from '@angular/platform-browser';
import { NgModule, ApplicationRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import * as firebase from 'firebase';
import { AngularFireModule } from 'angularfire2';
// Must export the config
const firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
storageBucket: ""
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
CommonModule,
FormsModule,
AngularFireModule.initializeApp(firebaseConfig)
],
providers: [],
entryComponents: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
} thanks |
So I did not test further to see where did the error for now but I see this error in the console:
poses problems because the definition of firebase not being found or when compiling or by VS Code. So I can enjoy autocompletion for types . I do not understand where does the worries at this level . Provided angularfire2 works without worries. Add or delete the reference to firebase in tsconfig.json changes nothing ... |
I wasn't able to reproduce any of these behaviors using the latest master and typescript@next. |
@GitHubish I don't think you're on all the correct versions. Can you run an |
The installation and setup for angularfire2 (08/26/2016) targets a little different project structure from the one which angular CLI creates (08/26/2016)
|
I have the exactly the same problem. |
I have the same problem, but then i try with login the app run only for Password login and not for Google ora Twitter or Facebook. |
It works for me when I added the "firebase" on "types" section of tsconfig.json
Do not need to upgrade to typescript@2.0.0, I'm using 1.8.10. Is this a good solution? Thanks! |
Amazing stuff ... Some face the same worries, the other not , plus differences in the configuration. For my part :
Thanks |
@paulogr The Firebase typings require TypeScript 2.0+ |
@GitHubish Can you publish your project to Github for me to take a look at? You have the correct versions installed. |
Thank-you for your prompt response. I am still looking but for the moment I do not understand. In fact , I have the impression that strangely Here are my deposit : https://github.com/GitHubish/angularfire2-test-webpack (all is ok - repo removed) Reminder I have a mistake with the definition Furthermore I have the error "
on Thanks |
@GitHubish The experimental thing is something i have a fix for here: |
@Hojou Ah cool ! Thank you for the tip ! |
Having the same problem when following the Guide. Problem happened after Step 2 when installing angularfire2. And injecting with
|
Hi @dmastag, 2. Installing AngularFire Beta 4: 3.In App.module.ts file 4. In App.component.ts 6. In App.component.html ul 7. command line |
For me everything all is ok , the problem with Firebase is set . The concern was resolved by being passed on version 8 of Angularcli-webpack. |
@gmanojisaac are you trying to say that it is working with those steps? |
I'm having the same issue with the error "Cannot find namespace 'firebase'." in a variety of angulafire2 files. I'm on Typescript 2.0 on global and local. Let me know if there's anything I can provide to help. |
@ashmccallum I've experienced those errors with a completely fresh install using angular-cli webpack. My fix which I got from @paulogr above was to edit src/tsconfig.json and add the lines (since new webpack angular-cli doesn't have the base entry for jasmine)
at the end of the compilerOptions entry after the typeRoots entry like so
|
thanks @terencewhitenz that seems to have sorted it for me as I can now see permission errors in the console |
Thank you all: angular/angularfire#461
Thank you all: angular/angularfire#461
I created a repository: https://github.com/sorcamarian/angularfire2-instalation-webpack-fixed-errors Thank you all! @gmanojisaac, your instructions were the most appropriate for me.(without point 7) |
Thank you all: angular/angularfire#461
Thank you all: angular/angularfire#461
Followed install instructions from https://github.com/angular/angularfire2 but getting errors on firebase namespace as per angular/angularfire#461
I followed the steps from the installation guide but I receive the below errors:
Files:
src\main.ts
src\app\app.component.ts
src\tsconfig.json
typings.json
I also tried the path shown here: https://www.youtube.com/watch?v=8E-dueHCd2o but without success
The text was updated successfully, but these errors were encountered: