Skip to content

Instantly share code, notes, and snippets.

@KoryNunn
Created March 30, 2014 21:32
Show Gist options
  • Save KoryNunn/9880205 to your computer and use it in GitHub Desktop.
Save KoryNunn/9880205 to your computer and use it in GitHub Desktop.
requirebin peerDep issue.
var Gaffa = require('gaffa');
var gaffa = new Gaffa();
// Has gaffa as a peerDependency.
var Textbox = require('gaffa-textbox');
gaffa.registerConstructor([
Textbox
]);
var thingBox = new Textbox();
window.onload = function(){
// add view to
gaffa.views.add([
thingBox
]);
};
/*
Error:
Bundling error:
---FLAGRANT SYSTEM ERROR---
--- error #0: ---
Error: "browserify exited with code 1"
code: 1
stderr: Error: module "gaffa" not found from "/tmp/gaffa-textbox114230-2259-i20nh8/node_modules/gaffa-textbox/textbox.js"
dirPath: /tmp/gaffa-textbox114230-2259-i20nh8
------
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/jesusabdullah/browserify-cdn/issues
Include the ENTIRETY of the contents of this message, and he can
try to help you out.
Have a nice day!
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment