Page MenuHomePhabricator

[landing] fixed fatal bundling issue using window outside function scope
ClosedPublic

Authored by derek on Aug 26 2022, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 5, 3:04 AM
Unknown Object (File)
Tue, Jan 28, 5:59 PM
Unknown Object (File)
Tue, Jan 28, 5:59 PM
Unknown Object (File)
Tue, Jan 28, 5:59 PM
Unknown Object (File)
Tue, Jan 28, 1:11 AM
Unknown Object (File)
Jan 16 2025, 10:06 AM
Unknown Object (File)
Jan 9 2025, 4:52 PM
Unknown Object (File)
Jan 9 2025, 4:52 PM

Details

Summary

after merging D4510, for some reason, there is an issue bundling with using the global variable window in the global scope as opposed to inside a function scope. it results in this error message:

Could not load landing.build.cjs. Did you forget to run `yarn dev` in the landing folder?
at getWebpackCompiledRootComponentForSSR (file:///Users/derek/clients/comm/keyserver/dist/responders/landing-handler.js:84:11)
Test Plan

run yarn dev and be able to visit /landing instead of being greeted by a fatal error

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable