Attempted import error: 'uuid' does not contain a default export (imported as 'uuid').

JavaScript
import {v1 as uuid} from "uuid"; 
// import {v3 as uuid} from "uuid"; 
// import {v4 as uuid} from "uuid"; 
// import {v5 as uuid} from "uuid"; 
Source

Also in JavaScript: