dxFeed / dxLink

Market Data API
https://demo.dxfeed.com/dxlink-ws/
Mozilla Public License 2.0
7 stars 2 forks source link

Unable to run demo #11

Closed igornem1 closed 4 months ago

igornem1 commented 4 months ago

Hello, I trying to run demo, but faced problem. What I did is:

  1. Cloned the repo into dxLink folder.
  2. As mentioned at https://github.com/dxFeed/dxLink/blob/main/dxlink-javascript/dxlink-api/README.md, I’ve ran command “npm install @dxfeed/dxlink-api“ at folder dxLink/dxlink-javascript/dxlink-api and received output message: added 5 packages, and audited 11 packages in 807ms
  3. At same folder I’ve ran comman “npm i -S @vitejs/plugin-react“ and received output message: “{{added 79 packages, and audited 90 packages in 16s }} {{7 packages are looking for funding }} run npm fund for details“

    4.I’ve entered to folder dxLink/dxlink-javascript/dxlink-api/demo and ran command “vite“ and got an error message:

    Failed to scan for dependencies from entries: /win/workspaces/nbs/nbs1/repo/dxLink/dxlink-javascript/dxlink-api/demo/index.html
    ✘ [ERROR] Failed to resolve entry for package "@dxfeed/dxlink-core". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan] ../../../../../../../../../home/user/.nvm/versions/node/v22.3.0/lib/node_modules/vite/node_modules/esbuild/lib/main.js:1225:21: 1225 │ let result = await callback({ ╵ ^ How can I fix the error, please?

Fyzu commented 4 months ago

Hello,

For your purposes, you do not need to clone this repository.

Please create your project and just follow the instructions in README.

Regards, dxLink team