mafintosh / mafintosh/docker-browser-server

TypeError: Cannot read property 'prototype' of undefined

Open
#11 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
80
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Getting an error:

❯ docker-browser-server busybox --port 8080
~node_modules/root/index.js:30
Root.prototype.__proto__ = process.EventEmitter.prototype;
                                                ^

TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (~node_modules/root/index.js:30:49)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (~node_modules/docker-browser-server/index.js:8:12)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with docker-browser-server busybox --port 8080, then inspect the stack-trace locations in node_modules/root/index.js and node_modules/docker-browser-server/index.js. Confirm the cause of the missing prototype value and verify that the command starts successfully after the compatibility issue is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.