DeprecationWarning: uuidv4() is deprecated. Use v4() from the uuid module instead.

See original GitHub issue

Code:

const { uuid } = require('uuidv4')

console.log(uuid)

Output:

[Function: deprecated]

Why deprecated?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
Vigneshgvscommented, Feb 16, 2022

for es6: import { v4 as uuidv4 } from ‘uuid’; console.log(uuidv4());

22reactions
BaseMaxcommented, Sep 13, 2021
const { v4: uuidv4 } = require('uuid')

Thanks, works; Done

Read more comments on GitHub >

github_iconTop Results From Across the Web

React: Deep requiring is deprecated as of uuid, Please ...
I tried to use 'import { v4 as uuidv4 } from 'uuid'; uuidv4();'; however my button would not show up and i would...
Read more >
uuidv4 - npm
This module will be deprecated in the future in favour of module uuid. Most of the functionality of this module is already included...
Read more >
How to resolve deprecated node-uuid message
A short guide about the node-uuid deprecated message. ... npm WARN deprecated node-uuid@1.4.8: Use uuid module instead.
Read more >
uuidv4 deprecated Code Example
uuidv4 deprecated. RaisingAgent. import { v4 as uuid_v4 } from "uuid"; uuid_v4() ... Use v4() from the uuid module instead. node uuidv4() is...
Read more >
uuid | Yarn - Package Manager
Complete - Support for RFC4122 version 1, 3, 4, and 5 UUIDs; Cross-platform - Support for ... CommonJS, ECMAScript Modules and CDN builds;...
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