Unable to activate latest workflow extension in WebIDE
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: Put your extension version here
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: Put your VS Code version here
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: Put your GitLab version here, or say "happens on
gitlab.com"
- GitLab version: Put your GitLab version here, or say "happens on
Summary
Activating workflow extension on local WebIDE with latest main branch of gitlab-vscode-extension is failing with failed: process is not defined .
process is exclusive to the Node.js environment and cannot be access in browser environment.
Steps to reproduce
- Open gitlab-web-ide project
- follow Setup integrating with GitLab Workflow VS Code extension
- Follow
If you want to make changes directly in the submodule:specifically and checkoutmainbranch ingitlab-vscode-extension
- Follow
- WebIDE builds but workflow extension fails to activate with an error.
What is the current bug behavior?
Can not use workflow extension in local WebIDE
What is the expected correct behavior?
Can use workflow extension in local WebIDE
Relevant logs and/or screenshots
!1942 (diffs) - where process was added.
Possible fixes
- Add
processas a global variable - https://github.com/niksy/node-stdlib-browser
- https://www.npmjs.com/package/vite-plugin-node-polyfills
Edited by Juhee Lee