D3.js 引入后使用transition()函数报错


yarn add d3

```html
<script setup>
import * as d3 from 'd3'

d3.transition()
</script>


页面直接报错,网上找了一些解决方案似乎没啥用
报错内容
Study.vue:46 Uncaught (in promise) TypeError: d3.select(...).append(...).attr(...).attr(...).selectAll(...).data(...).enter(...).append(...).attr(...).attr(...).attr(...).transition is not a function;

![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/585766879936188.png "#left")