First I installed d3-tip with npm install d3-tip
v0.6.7 then browserify'd my project without any issues.
My js looks like the following
var d3 = require("d3");
var d3tip = require("d3-tip");
var tip = d3tip()
.attr('class', 'd3-tip')
.offset([-10, 0])
.html(function(d) {
return "<strong>Hello World:</strong>";
});
The error I get is:
TypeError: d3 is undefined in my bundle.js yet
I'm using d3 elsewhere in my code without issue which makes me believe the error is in the npm module for d3 tip but I could be wrong.
Any ideas?