Closed barbalex closed 9 months ago
I thought it might be possible to use https://liosk.github.io/uuidv7/classes/UUID.html#getVersion to know if a value is a uuid v7.
Is that so ad if true, how do I access UUID?
It does not seem te be exported as using:
import { UUID } from '@kripod/uuidv7'
give me this error:
getLastIdFromUrl.ts:2 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@kripod_uuidv7.js?v=674f4bc2' does not provide an export named 'UUID'
I am a bit surprised to get this error seeing https://github.com/LiosK/uuidv7/blob/v0.6.3/src/index.ts#L12C1-L12C8 though.
You are loading a different library. This repo is for uuidv7, not for @kripod/uuidv7.
yep, my bad sorry for bugging you
No problem.
I thought it might be possible to use https://liosk.github.io/uuidv7/classes/UUID.html#getVersion to know if a value is a uuid v7.
Is that so ad if true, how do I access UUID?
It does not seem te be exported as using:
give me this error:
I am a bit surprised to get this error seeing https://github.com/LiosK/uuidv7/blob/v0.6.3/src/index.ts#L12C1-L12C8 though.