d3.js - D3.js 版本 3 是否支持 es6/es2015
问题描述
D3 版本 3 是否支持 es2015/es6?d3 使用 es2015 和 angular 可以正常工作,但是当升级到 angular 8 时,d3 开始给我一个运行时错误。“文档未定义”
"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.
],
解决方案
推荐阅读
- python - Python - 将 title() 函数应用于列中的值
- python - iwconfig 对使用 crontab @reboot 启动的进程不可用?
- c# - 从包括空格在内的单行中读取字符,而不是从新行中读取字符
- anaconda - 安装包后,Conda 需要 20 多分钟才能解决环境问题
- spring - 验证 Webflux ReactiveMongo
- c# - CSV文件的强类型解析
- react-native - 未定义不是对象(评估'_this2.props.navigation.navigate') - React Native
- udp - 对于小于默认值 1472 的有效负载大小,gnuradio UDP 源块的正确 MTU 设置是什么?
- git - 如何将作者姓名添加到自定义 git 别名?
- c# - C# 类 System.Data.SqlClient 无法加载文件或程序集