I installed Mousetrap through npm and have been trying to get Mousetrap.bindGlobal to work but this is the error it gives me
Uncaught TypeError: mousetrap__WEBPACK_IMPORTED_MODULE_13__.bindGlobal is not a function
This doesn't make sense because when I import mousetrap in my jsx file, vscode shows that the command is valid. Any help with this would be useful.