TypeError: uuid.v4 is not a function

import { v4 } from ‘uuid’;v4(); // Produces a UUID

--

--

--

Most of my writing is about software. I enjoy summarizing and analyzing books and self-help videos. I am a full-time software engineer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Starting a Full Stack Web Application

Bootstrapping State Management in apprun!

Media styling with react and styled-components

Built in object in JavaScript

Easiest way to deploy a Vue.js app in Heroku

All You Need to Know About Components

Text Animation Part01: How to make the Typewriter animation in Vue.js?

How to Make an App With React Native III: API Integration and Mobx

iOS app on wood table image with overlay text reading “How to Make an App in React Native III: API Integration and Mobx”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
janac

janac

Most of my writing is about software. I enjoy summarizing and analyzing books and self-help videos. I am a full-time software engineer.

More from Medium

Typescript Generics: Why do we use them?

Reusable Popover (or Menu) with Material UI and Typescript

Basics of Typescript Built-in Types

WEIRD TS TYPES 🛸: Using Contextual Typing and Deferred Inference to Plan an Alien Conquest