I'm having a really weird problem with d3.js initilization. In the d3.js script, at the very beginning, it tries to get var d3_document = this.document;
but it pops the following error:
Uncaught TypeError: Cannot read property 'document' of undefined
when debugging, this.document
returns undefined.
I'm using yo webapp
to generate the project. It uses bower as package manager and gulp for the build process (that uses babel for the ES2015 features).
The funny thing is that I've tested it with xampp and it works fine!
I would appreciate some advice!Thnx!