ERROR: Crypto and Buffer Module Externalized for browser compatibility
I’m encountering an issue when using Vite with the jsonwebtoken package in a React project. The issue appears to be related to the externalization of the crypto and buffer modules for browser compatibility, which is causing the following error: