hi,
I installed the npm package uuid. Now I like to generate a new id like:
const { v4: uuidv4 } = require('uuid');
console.log(uuidv4());
but this produce following error:
TypeError: 'slice' is not a function
at rng (node_modules/uuid/dist/rng.js:29:10)
at exports (function.js:12:15)
at apply (<native code>)
at function_wrapper.js:5:9
at <anonymous>:11:1
- Is it not possible to use this package?
- if not, how can I generate a new uuid string?
thx