kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.38k stars 510 forks source link

string-width\index.js not supported. #1020

Closed breno404 closed 5 months ago

breno404 commented 6 months ago
  1. Run yarn add command: yarn add bcrypt

  2. Try using the dependency: import bcrypt from "bcrypt"

[SCREENSHOTS]: *tsconfig: image

*command line: image

*import dependency: image

aw1875 commented 6 months ago

Have you had any luck finding a proper solution to this? Right now I've got a hacky workaround that works but it's annoying to have to do that every time I add a new package.

recrsn commented 5 months ago

Since string-width is not an es-module, you will need to use esModuleInterop till the ecosystem catches up.

breno404 commented 5 months ago

@aw1875 still nothing, I'm using bcryptjs as an alternative.