Comments (4)
I've so far got this working (i.e. no error when I run the app) by bringing the typescript source ts files locally, compiling with my tsconfig settings ("module": "system"), and putting them in a folder in my app, and referencing them as:
import {FIREBASE_PROVIDERS, defaultFirebase, AngularFire} from "./angularfire2/angularfire2";
from angularfire.
This project doesn't yet ship bundles like Angular 2 does. I have a branch where I've started creating a System-register-format bundle.
In the mean time, Angular 2's non-bundled distribution is the same as this project, CJS+corresponding d.ts files. Since it sounds like you're using System loader to load your project, you just have to add this to your System.config:
System.config({
paths: {
angularfire2: 'node_modules/angularfire2/'
},
packages: {
angularfire2: {
main: 'angularfire2.js',
defaultExtension: 'js'
}
}
}
from angularfire.
I updated the issue title and will leave it open as a reminder to ship the bundle.
from angularfire.
Oops, I guess I already merged the logic that creates the bundles, just haven't incorporated it into the publish process yet: https://github.com/angular/angularfire2/blob/master/package.json#L12
from angularfire.
Related Issues (20)
- Angular17 Standalone Application with firebase throws error after compiling HOT 2
- AngularFire 17.0.0 throwing errors with Angular 17.0.0 HOT 3
- feat: allow AngularFire to be used in a zoneless angular application HOT 14
- reauthenticateWithPhoneNumber throws auth/user-mismatch error HOT 1
- collectionData doesn't allow angular app to become stable with angular 17 and ssr (getDocs does) HOT 2
- Profile CRUD
- [BUG] optimization: true cause Service functions is not available Error: Service functions is not available
- @ngx-env/builder:application is not a recognized builder HOT 4
- Deployment to Google Cloud Run using Angular v17 Application Builder not working
- [error] AssertionError [ERR_ASSERTION]: catch clause variable is not an Error instance HOT 2
- Appcheck on Angular 17 does not work! HOT 3
- How to tell FCM to load the firebase-messaging-sw file in a different call route(href)? in @angular/fire (FCM) HOT 1
- where is firestore.fieldValue? HOT 1
- After updating angular cli and angular core to 15, I'm getting error in firebase as no firebase app default has been created HOT 1
- serverTimestamp fails when uploading to firestore. HOT 2
- Can't set custom lang to email templates HOT 2
- Unhandled Promise rejection Analytics with SSR HOT 1
- [Android] Firestore snapshot listeners is slow to retrieve data.
- Compat sample does not compile
- Either AngularFireModule has not been provided in your AppModule 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 angularfire.