question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broswer detection failing in production build.

See original GitHub issue

Browser 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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
egalotcommented, Nov 15, 2019

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

0reactions
AhsanAyazcommented, Nov 12, 2019

@egalot please try 1.3.16 and let me know if the issue is still there.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found