Does D3 version 3 support es2015/es6? Had d3 working fine using es2015 and angular but when upgrading to angular 8, d3 started giving me a runtime error. "Document is undefined"
"d3": "3.5.17",
"@angular/animations": "^8.0.2",
"@angular/cdk": "^8.0.1",
{//tsconfig.json
"compilerOptions": {
"allowJs": true,
"downlevelIteration": true,
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2015",
"es2017",
"dom",
"esnext.asynciterable" // Enable async generators. See https://stackoverflow.com/a/43694282/62694.
],