-
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
Module '"/node_modules/angularfire2/angularfire2"' has no exported member 'AngularFireModule'. #425
Comments
Haven't released the RC5 version yet. Should have it out today. It's also worth noting we haven't experimented with AngularFire2 and the Webpack version of the CLI. |
@DMPS if you are on a hurry you can pull the repo from github instead of npm using |
I am getting this errors:
|
@vladotesanovic What version of Typescript are you on? This requires 2.0+ |
@davideast Yes i see now in package.json |
My application is running fine, though I still have few reading and saving operations. |
@davideast can you give us some tips to get it working with the webpack version of the angular-cli? |
well adding |
I'm using the same angular-cli@webpack and still having the same issues after following the suggested solutions. I'm still getting the error of cannot find namespace 'firebase'. These are the steps I took:
import { AngularFireModule } from 'angularfire2'; What am I missing? |
@RedFour You might try copying the firebase3.d.ts to your typings folder, or |
I've tried both your suggestions and still get the same error of can't find firebase. |
@RedFour Can I see your tsconfig.json file? |
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
],
"types": [
"jasmine"
]
}
} |
@RedFour add |
like this? {
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
],
"types": [
"jasmine",
"firebase"
]
}
} |
yup |
I'm still getting the same errors. |
@RedFour run npm list at the root of the project and send a gist or pastbin with the output |
@RedFour i see you installed typescript globally ? can you |
C:\GitHub\hair-web>npm -g list |
@RedFour try to install typescript locally in the project, i think something is wrong with your node/npm installation |
run |
C:\GitHub\hair-web>npm install [email protected] --save-dev npm WARN optional Skipping failed optional dependency /chokidar/fsevents: |
@RedFour run |
hey @danielgek, I am having the same error, but I am on Ubuntu 16.04. If you get the solution, can you post it on this room https://gitter.im/angular/angularfire2? I will do the same if I get the solution. |
I ran typings install and it still didn't work. I created a brand new project just to see if I made any mistakes in the old project. Here are my steps:
and I get the "Cannot find namespace 'firebase' errors. Am I missing steps? Or did it fail because I didn't do certain things in the install guide? |
@migueldiganchi @RedFour
You may need to run |
yes, its a typo, fixed |
I ran npm install [email protected] --save and got the following? c:\GitHub\af-test>npm install [email protected] --save npm WARN optional Skipping failed optional dependency /chokidar/fsevents: is that normal? I also added firebase to tsconfig.json. When I do typings install, it says typings.json is missing. I'm still getting the same errors. Maybe it is a Windows/iOS issue. I'm going try your steps again tonight when I get a hold of a mac. |
It's looking to be Windows/iOS related. I did all the steps to create a new project on a Mac. It gave the "namespace firebase" error until I added "firebase" to the tsconfig.json file. So version on Mac works, while the same version on my PC doesn't. I've made sure both the versions of dependencies are the same: firebase:3.30, typescript:2.0, angular-cli:1.0.0-beta.11-webpack.2, angularfire2:2.0.0-beta.3-pre2. Can other people chime in whether they are experiencing this issue on a Mac or PC? |
So I followed the instructions that @danielgek laid out for @migueldiganchi & @RedFour, and I feel that I'm precariously close to having it right. I three all my code up here. here's a snippet of
and
Here's the error I'm getting:
I've had this working under RC4 with no problems, but I'm trying to get it going on RC5 with the new ngModule and webpack so I can be up to date. :/ |
@thehashrocket you need to set firebaseConfig before NgModule. const firebaseConfig = {
apiKey: "<your-key>",
authDomain: "<your-project-authdomain>",
databaseURL: "<your-database-URL>",
storageBucket: "<your-storage-bucket>"
} angularfire2 install and setup You don't need firebaseAuthConfig necessarily. Btw, are you using a Mac or PC? |
Hey, @RedFour , thanks for the fast response! I wasn't expecting anything until tomorrow. lol. I'm on Mac (OSX Sierra). Trying your solution right now. |
You were right! That was it. Oh, it was so obvious I looked right over it. How often is it such a simple solution and I always think it's something more complex. Ugh. Thank you, that's exactly what I needed. 👍 |
#431 I guess I didn't try all the available solutions. yashmurty pointed out, in the other thread, that I should try import firebase into my app.module import * as firebase from 'firebase'; And that fixed the issue for me. |
I'm glad it worked for you @RedFour. |
Hey @danielgek. I followed your steps and everything was ok! Thank you very much! And thanks to @RedFour and @thehashrocket too! Your comments was very helpful for me |
@RedFour hi. Have you the same problem? |
@bloodypastor |
I am getting same error as @bloodypastor |
How to initialize firebase config with angularfire2 version 5 which is "angularfire2": "^5.0.0-rc.4" |
|
Im new to angular, firebase. I do not know the right thing to do. Kindly suggest how to debug. Thanks |
angularfire2 splits its functionality into subfolders.
Check out the angularfire2 docs on authentication: https://github.com/angular/angularfire2/blob/master/docs/auth/getting-started.md |
@samcfinan thanks. i did import the line and followed the example on the github link but its still the same thing. I do not understand what i did wrong. I'm missing some other part of the flow |
I get this error while working on my project |
Can someone help me to find out the solution?? |
I am trying to use the latest version of AngularFire with the webpack 2 angular-cli and RC.5. However when I try to setup my firebase I get this error:
Module '"C:/Users/dalto/Documents/Deadspot/node_modules/angularfire2/angularfire2"' has no exported member 'AngularFireModule'.
I have checked angularFire but I do not see any AngularFireModule exported.
The text was updated successfully, but these errors were encountered: