Uncaught TypeError: can't access property "key", global is undefined
Author: xaddictCreated Jun 11, 2025Updated Jun 11, 2025
In specific environments, such as rolldown-vite, global does not exist. It only exists in direct node contexts.
Instead you are supposed to use globalThis.
For now, keymaster ungracefully fails in rolldown-vite and deno because of this.
Source: madrobby/keymaster