mafintosh / mafintosh/root

/root/index.js:27 Uncaught TypeError: Cannot read property 'prototype' of undefined

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
44
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I am using polo and that is using root and it seems root uses process.EventEmitter from nodejs that is not existing in the current version of nodejs. I want to use polo in electron version 1.6.2.

/home/ms/workspace.private/quickshare/node_modules/root/index.js:27 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (/home/ms/workspace.private/quickshare/node_modules/root/index.js:27)
    at Object.<anonymous> (/home/ms/workspace.private/quickshare/node_modules/root/index.js:286)
    at Module._compile (module.js:571)
    at Object.Module._extensions..js (module.js:580)
    at Module.load (module.js:488)
    at tryModuleLoad (module.js:447)
    at Function.Module._load (module.js:439)
    at Module.require (module.js:498)
    at require (internal/module.js:20)
    at Object.<anonymous> (/home/ms/workspace.private/quickshare/node_modules/polo/repository.js:1)
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/root/index.js:27
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/root/index.js:286
Module._compile @ module.js:571
Module._extensions..js @ module.js:580
Module.load @ module.js:488
tryModuleLoad @ module.js:447
Module._load @ module.js:439
Module.require @ module.js:498
require @ internal/module.js:20
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/polo/repository.js:1
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/polo/repository.js:324
Module._compile @ module.js:571
Module._extensions..js @ module.js:580
Module.load @ module.js:488
tryModuleLoad @ module.js:447
Module._load @ module.js:439
Module.require @ module.js:498
require @ internal/module.js:20
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/polo/index.js:2
(anonymous) @ /home/ms/workspace.private/quickshare/node_modules/polo/index.js:114
Module._compile @ module.js:571
Module._extensions..js @ module.js:580
Module.load @ module.js:488
tryModuleLoad @ module.js:447
Module._load @ module.js:439
Module.require @ module.js:498
require @ internal/module.js:20
(anonymous) @ /home/ms/workspace.private/quickshare/pages/main/main.js:3
(anonymous) @ /home/ms/workspace.private/quickshare/pages/main/main.js:14
Module._compile @ module.js:571
Module._extensions..js @ module.js:580
Module.load @ module.js:488
tryModuleLoad @ module.js:447
Module._load @ module.js:439
Module.require @ module.js:498
require @ internal/module.js:20
(anonymous) @ main.html:29

The issue https://github.com/3rd-Eden/FlashPolicyFileServer/issues/9 describes how to replace it.

I added a pull request for a fix https://github.com/mafintosh/root/pull/17

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

Start at root/index.js:27 and follow the require path through polo/repository.js. Reproduce the failure with Electron 1.6.2, compare the relevant compatibility guidance in the linked FlashPolicyFileServer issue and the existing pull request, and verify that requiring polo no longer raises the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.