ibaihuo / chanvis

基于TradingView本地SDK的可视化前后端代码,适用于缠论量化研究,和其他的基于几何交易的量化研究。 缠论量化 摩尔缠论 缠论可视化 TradingView TV-SDK
BSD 3-Clause "New" or "Revised" License
303 stars 135 forks source link

windows 环境, 安装包问题 #3

Open digger-yu opened 4 months ago

digger-yu commented 4 months ago
PS D:\git\chanvis\ui> npm run serve

> vuejs@0.1.0 serve D:\git\chanvis\ui
> vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 error                                                                          13:00:26
This relative module was not found:

* ../../public/charting_library in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ChanContainer.vue?vue&type=script&lang=js

运行npm run serve的时候报错

PS D:\git\chanvis\ui>
PS D:\git\chanvis\ui> npm -v
10.5.0
PS D:\git\chanvis\ui> yarn -v
1.22.22
PS D:\git\chanvis\ui> python --version
Python 3.10.11
PS D:\git\chanvis\ui>

请帮忙看看

dzmjs commented 2 months ago

You need to copy a DIR. https://github.com/tradingview/charting-library-examples/blob/master/vuejs/README.md From this website, you can see that the author copy a Vue2 dir from <tradingview/charting-library-examples> However the charting_library/ is NOT exist now.

dzmjs commented 2 months ago

https://github.com/gaoming13/tradingview In this website, you can see the ZIP format file. Yes, it is the correct ZIP file. I have validated the file in this project.

digger-yu commented 1 month ago

https://github.com/gaoming13/tradingview In this website, you can see the ZIP format file. Yes, it is the correct ZIP file. I have validated the file in this project.

hi 请问是复制压缩文件的全部内容到public目录还是仅仅复制压缩文件中的charting_library 子目录下的内容到public目录下

├─.github
│  └─ISSUE_TEMPLATE
├─charting_library
│  └─static
│      ├─bundles
│      ├─fonts
│      ├─images
│      │  ├─charting_library
│      │  ├─dialogs
│      │  ├─sidetoolbar
│      │  └─svg
│      │      └─chart
│      └─lib
│          └─external
└─datafeeds
    └─udf
        ├─dist
        ├─lib
        └─src

两种我都试过, 还是报同样的错误