-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restoring the process
variable in the browser.
#9815
Comments
@ccheraa I added a general entry about I don't think we should be specific in the guide to include the update mentioned in the issue as running the browser instance in electron is not a standard or supported use-case by the framework. It's also virtually impossible for the framework to anticipate some of the things that downstream applications might do or perform like this use-case. |
I know it's not a standard use-case, yet it showed that the
I actually think that using the process variable only when it should exist is better than providing it where it shouldn't be available, which sounds like a waorkaround.
|
@ccheraa if you believe it is something to be fixed in the framework, please feel free to contribute a pull-request 👍 |
Bug Description:
Up until a recent version, Theia used to use
webpack 4
, which had polyfills for some node packages, includingprocess
.After upgrading to
webpack 5
, which dropped the support for those polyfills, a bug surfaced when running Theia browser IDE in an Electron window.Theia tries to access the
process
variable which no longer exists, and throws an exception that stops the IDE from even starting up.It happens in:
theia/packages/filesystem/src/browser/filesystem-preferences.ts
Line 32 in dece352
Steps to Reproduce:
Additional Information
I have mentioned this bug before with a work around for Cypress, in #9751
We managed to fix it by including the process variable again using Webpack Config file.
Check evolvedbinary/fusion-studio-extension#472
I think this should be included in the changelog/migration guide.
The text was updated successfully, but these errors were encountered: