ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
https://zelark.github.io/nano-id-cc/
MIT License
24.22k stars 790 forks source link

Error while importing in node js #454

Closed KrishT0 closed 10 months ago

KrishT0 commented 10 months ago

I was trying to use Nanoid in my application to generate a short ID. const { nanoid } = require("nanoid"); used this but while running the app, it shows an error.

Error : image can anyone tell me what's wrong here?