ecomfe / echarts-gl

Extension pack for Apache ECharts, providing globe visualization and 3D plots.
BSD 3-Clause "New" or "Revised" License
2.61k stars 844 forks source link

设置开发环境时缺了个 lib 文件夹 #414

Open Supertramplee opened 3 years ago

Supertramplee commented 3 years ago

./src/chart/common/PointsBuilder.js line9 引用的lib文件夹缺失, 看了下被git Ignore了.. 暂时用 ../../util/visual 替代. 不知是缺了还是路径打错了.

import { getVisualColor, getVisualOpacity } from '../../../lib/util/visual';
ERROR in ./src/chart/common/PointsBuilder.js 9:0-76
Module not found: Error: Can't resolve '../../../lib/util/visual' in 'C
resolve '../../../lib/util/visual' in 'C:\Project\ecdev\echarts-gl\src\
  using description file: C:\Project\ecdev\echarts-gl\package.json (rel
    Field 'browser' doesn't contain a valid alias configuration
    using description file: C:\Project\ecdev\echarts-gl\package.json (r
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        C:\Project\ecdev\echarts-gl\lib\util\visual doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        C:\Project\ecdev\echarts-gl\lib\util\visual.js doesn't exist
      .json
        Field 'browser' doesn't contain a valid alias configuration
        C:\Project\ecdev\echarts-gl\lib\util\visual.json doesn't exist
      .wasm
        Field 'browser' doesn't contain a valid alias configuration
        C:\Project\ecdev\echarts-gl\lib\util\visual.wasm doesn't exist
      as directory
        C:\Project\ecdev\echarts-gl\lib\util\visual doesn't exist
 @ ./src/chart/graphGL/GraphGLView.js 17:0-52 38:34-47
 @ ./src/chart/graphGL/install.js 7:0-40 17:32-43
 @ ./src/chart/graphGL.js 2:0-44 3:4-11
 @ ./src/export/all.js 18:0-26
pissang commented 3 years ago

谢谢反馈,已修正