Replies: 1 comment 2 replies
-
You need to migrate your app to ESM or install |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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](https://private-user-images.githubusercontent.com/78247197/279631944-639c31a0-a22f-429c-bac2-21fb5a237b5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3ODI4MTQsIm5iZiI6MTcyNDc4MjUxNCwicGF0aCI6Ii83ODI0NzE5Ny8yNzk2MzE5NDQtNjM5YzMxYTAtYTIyZi00MjljLWJhYzItMjFmYjVhMjM3YjVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDE4MTUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlNjcwMjU3MDNjOGJmZWFkMTk0YWEzYThiNGM1ZTE0YzcxNjU0MWIxNzU2NDEyNTE3NDE3NDAyYzY3OWRkMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hxYWjslK2yhLuFqAbt_vFRY3JFm6mmXgnZCXHZPQO6g)
can anyone tell me what's wrong here?
Beta Was this translation helpful? Give feedback.
All reactions