If you enter in the lib code, you will see that it don't have an 'export default' statement, so you will need to access the exact name for the function you want
try to import like this:
import { jwtDecode } from "jwt-decode";