jaredhanson / jaredhanson/electrolyte
Error on require
- Dominant language
- JavaScript
- Stars
- 555
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
I have just been requireing electrolyte
simple as:
`var IoC = require('electrolyte');`
throws following error:
> node test.js
>
> util.js:555
> ctor.prototype = Object.create(superCtor.prototype, {
> ^
> TypeError: Object prototype may only be an Object or null
> at Function.create (native)
> at Object.exports.inherits (util.js:555:27)
> at Object. (/Users/xxx/testproject/node_modules/electrolyte/lib/container.js:42:6)
> at Module._compile (module.js:456:26)
> at Object.Module._extensions..js (module.js:474:10)
> at Module.load (module.js:356:32)
> at Function.Module._load (module.js:312:12)
> at Module.require (module.js:364:17)
> at require (module.js:380:17)
> at Object. (/Users/xxx/testproject/node_modules/electrolyte/lib/index.js:1:79)
am i using it wrong or is there an unstable state online?
thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the `var IoC = require('electrolyte')` example in `test.js`, then inspect `lib/index.js` and the inheritance setup at `lib/container.js:42`. Done means identifying why the package load throws `TypeError: Object prototype may only be an Object or null` and verifying that the simple require no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- 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