Error AtlasError Documentation and Resolution

Vite surfaced a strict-mode type error from incompatible code

TypeError: Cannot create property 'foo' on boolean 'false'

Vite surfaced runtime code that depends on non-strict JavaScript semantics, which fail under ESM strict mode.

TypeError: Cannot create property 'foo' on boolean 'false'runtime
TypeError: Cannot create property 'foo' on boolean 'false'
  • Legacy code relies on loose JavaScript behavior that strict mode forbids.
  • A dependency mutates values in ways that only worked outside strict mode.
  • Code that was never designed for ESM is now running through Vite.
  1. Inspect the stack trace to find the dependency or file using sloppy-mode assumptions.
  2. Patch, replace, or isolate the incompatible code path.
  3. Modernize the code so it behaves correctly in ESM strict mode.
Vite: Troubleshooting
Vite TypeError Cannot create property on boolean false: causes and fixes | Error Atlas