JSONWebToken Error con React JS

Run npm install jwt-decode or yarn add jwt-decode to install the library.
import jwt_decode from "jwt-decode";
 
var token = "eyJ0eXAiO.../// jwt token";
var decoded = jwt_decode(token);
 
console.log(decoded);
hassaan khan