I'm trying to use short-uuid - npm
I imported it here
And I'm using it in a script here
But it seems to not be working?
I'm trying to use short-uuid - npm
I imported it here
And I'm using it in a script here
But it seems to not be working?
That file at https://cdn.jsdelivr.net/npm/short-uuid@4.2.2/index.js seems to require a bundler (it references require
). You'll need to either build the package yourself or find a built version that can be run in a browser with no dependencies.
Used https://esbuild.egoist.dev/ to compile the script.