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.

uuidv4 return nan-undefinedundefined in browser #193

See original GitHub issue

Steps:

  1. Install Angular 8
  2. Install uuid ^8.2.0
  3. Run project in development mode. Result is good (like 75442486-0878-440c-9db1-a7006c25a39f).
  4. Run project in production mode. Result is:

nan-undefinedundefined-undefinedundefined-undefinedundefined-undefinedundefinedundefinedundefinedundefinedundefined

OS: Windows 7 or 10 Browser: Chrome

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
anton-marchenkocommented, Aug 13, 2020

@broofa

Yeah. I reproduced the bug in Angular 8. I have updated Angular to v9 and the bug does not reproduce any more.

Thank you.

1reaction
ctavancommented, Aug 20, 2020

@anton-marchenko thank you for taking the time to pull together the reproduction.

I was able to reproduce the issue with Angular 8.

The key thing that fixed it for me was upgrading @angular-devkit/build-angular@0.801.3 to @angular-devkit/build-angular@0.901.12

@RezaRahmati can you give that a try?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date returning as "Undefined" and "NaN" in some browsers?
I have been trying to troubleshoot this all morning, and I cannot see anything that would be causing the return of "undefined NaN,...
Read more >
uuidv4 - npm
Please note that the isUuid function returns true for both, v4 and v5 UUIDs. In addition, isUuid returns true for empty() . Using...
Read more >
npm fails to install - Google Groups
7 verbose cache add name=undefined spec="appium" args=["appium",null] ... Returns NaN if string can\'t be parsed to number.\n\n```javascript\n_(\'2.556\').
Read more >
pytest Documentation - Read the Docs
to assert that your function returns a certain value. ... A pytest plugin for console based browser test selection just after the collection ......
Read more >
Speaking-JavaScript.pdf - Pepa
All major browsers have consoles for entering JavaScript that is evaluated in the ... (Reading an unknown property always returns undefined.) Objects.
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