The package management tool I use is yarn, and I configured resolutions in package.json to solve the problem,
"resolutions": { "@jridgewell/gen-mapping": "0.3.3" }