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.

TypeError: uuid.v4 is not a function

See original GitHub issue

Hello there! Thanks for sharing the library 😃

I’m trying to fetch an accounts list from my customers, but I’m receiving this error upon every request to the Adwords API:

.../node_modules/soap/lib/client.js:275
  var eid = options.exchangeId || uuid.v4();
                                       ^

TypeError: uuid.v4 is not a function

Do you have any idea of how can I solve this? Tried changing my uuid version on my packages.json but didn’t do the trick, still getting it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

32reactions
antoniosthanasisgitcommented, Jun 14, 2020

change this uuid.v4(); to this uuid.v4; and also import {v4 as uuid} from “uuid”;

10reactions
vikashsinghcsecommented, Jul 21, 2020

import { v4 as uuidv4 } from 'uuid'; uuidv4();

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: uuidv4 is not a function - Stack Overflow
As you want to generate a v4 id. You can use it this way. <div key={uuidv4.v4()}></div>. Note: I suggest you to import it...
Read more >
TypeError: uuid.v4 is not a function - janac - Medium
v4 is not a function. For other Typescript newbies like me that want to understand why this is happening — it's because the...
Read more >
[Solved]-TypeError: uuidv4 is not a function-Reactjs
Redirect to screen from an api interceptor (outside of component) in React Native · Undefined/null reference when trying to add ReactCSSTransitionGroup ( ...
Read more >
uuidv4 - npm
Start using uuidv4 in your project by running `npm i uuidv4`. ... need to integrate uuidv4 into your project by using the require...
Read more >
Generating a Random Unique UUID Using Parameter ...
[07:38:00.16] Error: Vuser "Cannot find module 'uuidv4'" ... javascript - TypeError: uuidv4 is not a function - Stack Overflow to.
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