Using ShortUUID library From NPM

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 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 to compile the script.