browserify / wzrd.in

browserify as a service.
http://wzrd.in
MIT License
639 stars 96 forks source link

Error: "put() requires key and value arguments" #105

Closed kumavis closed 8 years ago

kumavis commented 9 years ago
Bundling error: 

---FLAGRANT SYSTEM ERROR---

--- error #0: ---

(logs uuid: 4e580c00-0633-11e5-af02-bfd5ac86c7f5 )

Error: "put() requires key and value arguments"

------

This is probably an issue with the package, and not browserify-cdn itself.
If you feel differently, feel free to file a bug report at:

    https://github.com/jfhbrook/browserify-cdn/issues

Include the ENTIRETY of the contents of this message, and the maintainer(s)
can try to help you out.

Have a nice day!
kumavis commented 9 years ago

src:

var quickconnect = require('rtc-quickconnect')
var rtcDataStream = require('rtc-data-stream')
var RString = require('r-string')
var createEditor = require('javascript-editor')

var editor = createEditor({ container: document.body })

quickconnect('https://switchboard.rtc.io/', { room: 'c0d3rz' })
  .createDataChannel('code')
  .on('channel:opened:code', function(id, dc) {
    console.log('channel foo opened for peer: ' + id);
    var transport = rtcDataStream(dc)
    connectPeer(transport)
  });

function connectPeer(transport) {
  transport
}
kumavis commented 9 years ago

package.json:

{
  "name": "requirebin-sketch",
  "version": "1.0.0",
  "dependencies": {
    "edit": "1.0.1",
    "rtc-data-stream": "1.0.2",
    "rtc-quickconnect": "4.3.0",
    "r-string": "git://github.com/kumavis/r-string.git"
  }
}
kumavis commented 9 years ago

request:

{"options":{"debug":true},"dependencies":{"r-string":"git://github.com/kumavis/r-string.git"}}
idibidiart commented 8 years ago

Getting the same error.

Is this project abandoned or is this issue lacking sufficient details?

jfhbrook commented 8 years ago

abandoned is such a strong term

idibidiart commented 8 years ago

truly! :) @jfhbrook

So it's basically having trouble with non-numeric values for modules versions

<<"r-string": "git://github.com/kumavis/r-string.git">>

is causing it for the OP

As for me, I was being sloppy and specifying "*" for the version of ImmutableJS module

Obviously the error message could be more self explanatory, but it's NOT entirely useless :)

p.s. not sure if it would work with "^" or "~" prefixed to version numbers... haven't tried

Update:

Just starred this! Using it via ttp://esnextb.in/

sorry for bitching

jfhbrook commented 8 years ago

yes, versions not on npm (like git tags) will barf spectacularly. There's an open issue for it.

max-mapper commented 8 years ago

project isnt abandoned, just none of us care about new npm features :) but if someone wants to invest in supporting all the new stuff then more power to you

jfhbrook commented 8 years ago

Closing this because I'm choosing arbitrarily to track non-npm version support at #107 107