You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is, with Browerify-style imports, we get into this branch of the module logic at the beginning of angular-dc.js:
}elseif(typeofexports==='object'){// Node. Does not work with strict CommonJS, but// only CommonJS-like enviroments that support module.exports,// like Node.module.exports=factory();
This calls the factory function with no arguments, so angular, dc, _, and d3 are all undefined.
It should be fixable by changing to module.exports = factory; (don't call factory, just export the function). Then we could load the module using browserify as follows:
When using Browserify to load in
angular-dc
, I'm getting a "cannot read property 'module' of undefined" error. I'm loadingangular-dc
as follows:The issue is, with Browerify-style imports, we get into this branch of the module logic at the beginning of
angular-dc.js
:This calls the
factory
function with no arguments, soangular
,dc
,_
, andd3
are all undefined.It should be fixable by changing to
module.exports = factory;
(don't callfactory
, just export the function). Then we could load the module using browserify as follows:The text was updated successfully, but these errors were encountered: