I have an html-file with several d3-graphs directly written in script tags into it. When I outsource one of the graphs into an external js file I get this message \"NS_ERROR
I was having the same error and the solution is to have your index.html, script.js and data.json in the same directory.