It would behove you to update crypto in lib/main.js to crypto-js, as the crypto package is long depcrecated.
`Failed to resolve entry for package "crypto". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]
It would behove you to update crypto in lib/main.js to crypto-js, as the crypto package is long depcrecated.
`Failed to resolve entry for package "crypto". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]
Fixed it by trying to going into node_modues/lib/main.js and manually change to crypto-js. Fixed that issue.