bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

Vite: Module "crypto" has been externalized for browser compatibility

Open thgh opened this issue 1 year ago • 1 comments

Vite 5 shows this warning:

[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility,
imported by "/.../node_modules/bcryptjs/dist/bcrypt.js".
See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility
 for more details.

I think this error would not occur if this package would use the exports field in package.json and export a browser/node version.

thgh avatar Feb 04 '24 11:02 thgh

请问该怎么处理呢,我也是在浏览器出来这个警告

Yuqn avatar Aug 10 '24 13:08 Yuqn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Feb 12 '25 00:02 github-actions[bot]