stanleyeosakul / angular-universal-firebase Goto Github PK
View Code? Open in Web Editor NEWAngular Universal app using Firebase Cloud Functions
License: MIT License
Angular Universal app using Firebase Cloud Functions
License: MIT License
Angular animation didn't work when i run with node js
firebase serve --only functions,hosting
or
firebase deploy
both didn't work ( animation )
Thank you for this repo. The Youtube video David East did showing how to do SSR with Firebase hosting is a gimmick! This tutorial actually works.
In the video by the Google Developer Advocate, there is no repo with a working solution nor does he prove that it works on video. I spent 3 or 4 evenings after work trying to get it working. After coming across this tutorial I realized that the video could not have worked and is nothing more than a hoax.
Thank you.
Hello, this method allows for lazy loaded modules to work? and prerenders them?
/angular-universal-firebase/functions/index.js:12
const functions = require('firebase-functions');
^
SyntaxError: Identifier 'functions' has already been declared
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:545:28)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at /usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js:18:11
at Object. (/usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js:38:3)
Hi Stanley!
I can't use this method to deploy A5 apps to Firebase with SSR because my app is using the HammerJS lib and Angular Material.
The following error occurs during deployment if I use HammerJS:
Error: Error occurred while parsing your function triggers.
ReferenceError: window is not defined
at Object. (/private/var/folders/7c/78msd3tj5zj75g1_pbnmpf7m0000gn/T/fbfn_7305dKGJirWMAoKm/node_modules/hammerjs/hammer.js:2643:4)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.LYNW (/private/var/folders/7c/78msd3tj5zj75g1_pbnmpf7m0000gn/T/fbfn_7305dKGJirWMAoKm/dist-server/main.bundle.js:1:40603)
at l (/private/var/folders/7c/78msd3tj5zj75g1_pbnmpf7m0000gn/T/fbfn_7305dKGJirWMAoKm/dist-server/main.bundle.js:1:220)
Have you got any solution for this?
Kind rgds,
Barna
Hi,
When i remove root dist/index.html this error show me when run the app
ReferenceError: html is not defined at E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\index.js:25:30 at Layer.handle [as handle_request] (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\layer.js:95:5) at next (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\layer.js:95:5) at E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\index.js:281:22 at param (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\index.js:354:14) at param (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\index.js:365:14) at param (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\index.js:365:14) at Function.process_params (E:\NodeJs Projects\Mangaka3rb - sarhansoft website\angular-universal-firebase\functions\node_modules\express\lib\router\index.js:410:3)
when i keep dist/index.html it not view never, but when try to open another page (url) directly it show to me again. like (myapp.com/login)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.