node.js - Nodejs d3 package gives error -
i getting below error while trying use d3 package on node.js.
{ "ingestiontime": 1435227001159, "timestamp": 1435227000775, "message": "\n/var/task/node_modules/d3/d3.js:562\n" }, { "ingestiontime": 1435227001159, "timestamp": 1435227000775, "message": " return n.queryselector(s);\n" }, { "ingestiontime": 1435227001159, "timestamp": 1435227000775, "message": " ^\n" }, { "ingestiontime": 1435227001159, "timestamp": 1435227000835, "message": "typeerror: cannot call method 'queryselector' of undefined\n" }, { "ingestiontime": 1435227001159, "timestamp": 1435227000835, "message": " @ d3_select (/var/task/node_modules/d3/d3.js:562:14)\n" }, { "ingestiontime": 1435227001159, "timestamp": 1435227000835, "message": " @ object.d3.select (/var/task/node_modules/d3/d3.js:1043:17)\n" },
i have used both 3.5.3 , latest 3.5.5 both give same error.
and node.js code is:
var d3 = require("d3"); var d3measuretext = require('d3-measure-text'); d3measuretext.d3 = d3; var dim = d3measuretext("time (days)"); console.dir(dim);
can please me, doing wrong.thanks in advance.
Comments
Post a Comment