-
Notifications
You must be signed in to change notification settings - Fork 64
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
angular universal monitoring #58
Comments
We have a similar issue opened in our common issue tracker for all of the Currently, we don't have explicit support for using our libraries outside of a strictly Node environment. |
@stephenplusplus seems that you got it wrong, we are speaking about nodejs express app running inside docker container in google cloud kubernetes |
Sorry, I definitely don't want to prematurely close, so let me re-open to make sure I understand. This line is throwing me:
Could you make that demo repo you mentioned? |
Its ok do not worry about it, here is repository with demo: https://github.com/mac2000/logging58 First ensure app is working at all by:
then you should be able to see default angular app running on localhost:4000 now in server.ts try to uncomment lines 14-40 and run Hope that helps |
Thank you for putting that together. Unfortunately, since the problem is with mixing our Cloud client libraries with Webpack, that qualifies as an "out of our current bounds" implementation. Webpack is designed to take Node modules and conform them to the browser's environment. This issue is still the correct place to track support for this. There has also been some discussion on this issue: googleapis/google-cloud-node#1821. Sorry that we can't be much more help for now. |
Same issue here using webpack.
I don't think it's fair to disregard this saying webpack is only for browser-focused apps. I'm using typescript to build a node backend and there is no way to run this natively. |
What we are trying to do is to run Angular universal app inside GKE and collect logs to StackDriver
Steps to reproduce
angular 5.1 universal
After reproducing all steps we got working universal app, but after trying add logging to it (no matter is it bunyon or winson we always get same error while trying to build app, complayinging:
problem seems to be related with webpack, I bed that if I will try to create nodejs app everything will work out of the box
if you will have problems with reproducing thing thing - please let me know I will create demo repo for this
The text was updated successfully, but these errors were encountered: