You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this module is used as a dependency in a project that uses the setting "compilerOptions { target = "es2015" }", suddenly environment variables aren't available to the application via MultiplatformSystem.readEnvironmentVariable.
It looks like when the JS code tries to determine the environment, it uses a raw 'require'. I believe this is causing an error when inside of an mjs context, causing the system to assume its running in a browser context, even though it is not.
Discovered this after switching a project based on Clikt to use ESM.
The text was updated successfully, but these errors were encountered:
When this module is used as a dependency in a project that uses the setting "compilerOptions { target = "es2015" }", suddenly environment variables aren't available to the application via MultiplatformSystem.readEnvironmentVariable.
It looks like when the JS code tries to determine the environment, it uses a raw 'require'. I believe this is causing an error when inside of an mjs context, causing the system to assume its running in a browser context, even though it is not.
Discovered this after switching a project based on Clikt to use ESM.
The text was updated successfully, but these errors were encountered: