Skip to content
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

fix(webpack): add missing process shim #410

Closed
petermetz opened this issue Dec 3, 2020 · 0 comments · Fixed by #412
Closed

fix(webpack): add missing process shim #410

petermetz opened this issue Dec 3, 2020 · 0 comments · Fixed by #412
Assignees
Labels
API_Server bug Something isn't working
Milestone

Comments

@petermetz
Copy link
Member

Describe the bug

The cockpit is crashing with

Uncaught ReferenceError: process is not defined

To Reproduce

  1. build the project
  2. start API server
  3. launch cockpit in browser
  4. observe the WSOD and the crash log on the console

Expected behavior

Cockpit does not crash.

Logs/Stack traces

Uncaught ReferenceError: process is not defined
    js cactus-common.web.umd.js:46764
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:46650
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:46632
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:24479
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:72160
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:72135
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:71690
    __webpack_require__ cactus-common.web.umd.js:72520
    zZ7g cactus-common.web.umd.js:72555
    zZ7g cactus-common.web.umd.js:72556
    webpackUniversalModuleDefinition cactus-common.web.umd.js:3
    zZ7g cactus-common.web.umd.js:10
    Webpack 12
cactus-common.web.umd.js:46764
    js cactus-common.web.umd.js:46764
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:46650
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:46632
    __webpack_require__ cactus-common.web.umd.js:72520
    js cactus-common.web.umd.js:24479
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:72160
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:72135
    __webpack_require__ cactus-common.web.umd.js:72520
    ts cactus-common.web.umd.js:71690
    __webpack_require__ cactus-common.web.umd.js:72520
    zZ7g cactus-common.web.umd.js:72555
    zZ7g cactus-common.web.umd.js:72556
    webpackUniversalModuleDefinition cactus-common.web.umd.js:3
    zZ7g cactus-common.web.umd.js:10

Screenshots

Screenshot from 2020-12-03 10-33-46

Operating system name, version, build:

$ printf "$(uname -srm)\n$(cat /etc/os-release)\n"
Linux 5.4.0-56-generic x86_64
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Hyperledger Cactus release version or commit (git rev-parse --short HEAD):

v0.2.0

Additional context

A little help with the fix itself: vfile/vfile#38 (comment)

cc: @sfuji822 @takeutak @jonathan-m-hamilton

@petermetz petermetz added bug Something isn't working API_Server labels Dec 3, 2020
@petermetz petermetz added this to the v0.3.0 milestone Dec 3, 2020
@petermetz petermetz self-assigned this Dec 3, 2020
petermetz added a commit to petermetz/cacti that referenced this issue Dec 3, 2020
petermetz added a commit that referenced this issue Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API_Server bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant