Broswer detection failing in production build.
See original GitHub issueBrowser detection is failing in a production build:
command: ng build --prod
typical result:
{userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) Appl…KHTML, like Gecko) Version/13.0.2 Safari/605.1.15", os: "", browser: "", device: "", os_version: "", …}
On development (ng serve) it works as expected:
{userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) Appl…KHTML, like Gecko) Version/13.0.2 Safari/605.1.15", os: "Mac", browser: "Safari", device: "iPad", os_version: "mac-os-x-15", …}
Thanks for your help.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
java - Pivot Cloud Foundry error: "Browser detection failed and ...
I'm trying to cf push my spring boot app to Pivot Cloud Foundry, but the container fails to start. This is the error...
Read more >Implementing feature detection - Learn web development | MDN
Feature detection involves working out whether a browser supports a certain block of code, and running different code depending on whether it ...
Read more >6 reasons your Node.js apps are failing - IBM Developer
1. Uncaught exceptions or error events in JavaScript code · 2. Excessive memory usage, which may result in an out-of-memory error · 3....
Read more >Browser console shows DevTools failed to load SourceMap ...
Solution · Go to the developer tools (F12 in the browser); · Select the Cogwheel in the upper right corner; · In the...
Read more >Troubleshooting - Create React App
npm run build fails to minify ... Before react-scripts@2.0.0 , this problem was caused by third party node_modules using modern JavaScript ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, tested 1.3.16 the problem remains. {userAgent: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) Ap…ML, like Gecko) Chrome/78.0.3904.97 Safari/537.36”, os: “”, browser: “”, device: “”, os_version: “”, …}
The problem occurs on production builds not on regular development builds.
Thanks
Emil
@egalot please try
1.3.16
and let me know if the issue is still there.