Comments (3)
Yes, there is a module.exports = Firebase;
at the end of firebase-web.js
and that is something the browser does not understand. Probably that is a mistake and was meant for firebase-node.js
. Try firebase-node.js
instead as that file is actually missing the export.
from angular-lab.
firebase-node.js is creating more problems than firebase-web.js.
Uncaught ReferenceError: process is not defined(anonymous function) @ firebase-node.js:31(anonymous function) @ firebase-node.js:33 firebase.ts:11Uncaught ReferenceError: Firebase is not defined(anonymous function) @ firebase.ts:11(anonymous function) @ firebase.ts:369M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ todo.ts:3(anonymous function) @ todo.ts:41M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ services.ts:4(anonymous function) @ services.ts:30M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ bootstrap.ts:8(anonymous function) @ bootstrap.ts:19M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798a @ system.src.js:3798Promise.all.then.execute @ system.src.js:3798y @ system.src.js:3798S @ system.src.js:3798p @ system.src.js:3798h @ system.src.js:3798(anonymous function) @ system.src.js:3798run @ zone.js:110zoneBoundFn @ zone.js:83 system.src.js:3798 Uncaught Uncaught ReferenceError: Firebase is not defined Evaluating http://localhost:8000/common/firebase.jsM @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ todo.ts:3(anonymous function) @ todo.ts:41M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ services.ts:4(anonymous function) @ services.ts:30M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ bootstrap.ts:8(anonymous function) @ bootstrap.ts:19M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798a @ system.src.js:3798Promise.all.then.execute @ system.src.js:3798y @ system.src.js:3798S @ system.src.js:3798p @ system.src.js:3798h @ system.src.js:3798(anonymous function) @ system.src.js:3798run @ zone.js:110zoneBoundFn @ zone.js:83 system.src.js:3798 Uncaught Uncaught Uncaught ReferenceError: Firebase is not defined Evaluating http://localhost:8000/common/firebase.js Evaluating http://localhost:8000/app/services/todo.jsM @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ services.ts:4(anonymous function) @ services.ts:30M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ bootstrap.ts:8(anonymous function) @ bootstrap.ts:19M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798a @ system.src.js:3798Promise.all.then.execute @ system.src.js:3798y @ system.src.js:3798S @ system.src.js:3798p @ system.src.js:3798h @ system.src.js:3798(anonymous function) @ system.src.js:3798run @ zone.js:110zoneBoundFn @ zone.js:83 system.src.js:3798 Uncaught Uncaught Uncaught Uncaught ReferenceError: Firebase is not defined Evaluating http://localhost:8000/common/firebase.js Evaluating http://localhost:8000/app/services/todo.js Evaluating http://localhost:8000/app/services.jsM @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798s @ system.src.js:3798(anonymous function) @ system.src.js:3798(anonymous function) @ bootstrap.ts:8(anonymous function) @ bootstrap.ts:19M @ system.src.js:3798s.metadata.execute @ system.src.js:3798i @ system.src.js:3798a @ system.src.js:3798Promise.all.then.execute @ system.src.js:3798y @ system.src.js:3798S @ system.src.js:3798p @ system.src.js:3798h @ system.src.js:3798(anonymous function) @ system.src.js:3798run @ zone.js:110zoneBoundFn @ zone.js:83 zone.js:110 Uncaught Uncaught Uncaught Uncaught ReferenceError: Firebase is not defined Evaluating http://localhost:8000/common/firebase.js Evaluating http://localhost:8000/app/services/todo.js Evaluating http://localhost:8000/app/services.js Evaluating http://localhost:8000/app/bootstrap.js Error loading http://localhost:8000/app/bootstrap.jsrun @ zone.js:110zoneBoundFn @ zone.js:83run @ zone.js:110zoneBoundFn @ zone.js:83
from angular-lab.
That is because firebase-node.js
seems to be node specific, thus will not work. I thought that they might have mistakenly switched the node version with the web version sine module.exports
is found in the firebase-web
file. But that is not the case, so you will have to stick with the bower version or you can use the version they provide from CDN.
from angular-lab.
Related Issues (20)
- fix: unit tests are not working
- chore: use JSPM as package manager
- feat: use trackBy
- Modify services / chores to not use User HOT 6
- chore: simplify gulpfile
- feat: use HTTP interceptors HOT 1
- chore: use karma-jspm to run unit tests HOT 1
- fix: app is broken
- feat: use lazy loading routes HOT 1
- feat: use codelyzer
- feat: upgrade to Angular 2 RC5
- chore: dump JSPM in favour of npm
- chore: use @types in favour of @typings
- I might be missing something in the docs but I am having problems with gulp HOT 2
- feat: deploy to Firebase
- fix: e2e tests cannot run HOT 2
- chore: switch back to Yarn HOT 1
- fix: HTTP requests are not allowed on Firebase
- fix: e2e tests fail on most browsers
- feat: use GraphQL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-lab.