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 solved this issue by moving the JSON file to a subdirectory of the directory containing my html file.
BROKEN:
www/ code/ hello.html # refers to ../data/hello.json data/ hello.json
WORKING:
www/ hello.html # refers to data/hello.json data/ hello.json