【问题标题】:Cannot find file: 'index.js' does not match the corresponding name on disk: '.\node_modules\Victory\es\victory'找不到文件:'index.js' 与磁盘上的相应名称不匹配:'.\node_modules\Victory\es\victory'
【发布时间】:2021-08-19 05:38:26
【问题描述】:

我试图使用 react 上的图表来表示 csv 数据。 我不知道发生的错误。 我已经安装了d3以及victory。

我的代码

发生错误

【问题讨论】:

  • 看起来您应该从 "victory" 导入(小写 V)
  • 请不要张贴代码、错误或其他文字的图片。请在此处复制原文。

标签: reactjs d3.js victory-charts


【解决方案1】:

尝试替换

import { VictoryBar, VictoryChart } from "Victory";

由

import { VictoryBar, VictoryChart } from "victory";

【讨论】:

    猜你喜欢
    • 2019-08-04
    • 2022-10-07
    • 1970-01-01
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 2011-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多