mljs / libsvm

LIBSVM for the browser and nodejs :fire:
https://mljs.github.io/libsvm/
BSD 3-Clause "New" or "Revised" License
82 stars 14 forks source link

DEMO page on the documentation and Error in wasm.js #19

Open pang-lee opened 2 years ago

pang-lee commented 2 years ago
  1. Which of the folder is your documentary demo page?? Your Coding is so good that I want to try your demo page on my computer!!

  2. By the way there is an error in wasm.js say that -> [ cannot resolve ‘./out/wasm/libsvm’ ], and In deed there is no out folder in root directory.

Please give me a hand about that two questions, Thanks!!

stropitek commented 2 years ago

The project is really outdated and would need to be reworked

  1. Which of the folder is your documentary demo page??

The demo page is generated in the demo-dist folder

2. By the way there is an error in wasm.js say that -> [ cannot resolve ‘./out/wasm/libsvm’ ], and In deed there is no out folder in root directory.

If you run npm run build that folder should be created

pang-lee commented 2 years ago

This is the result which I tried to run "npm run build" error, Is there any version of npm & node should I use for this project?? My node version : v14.18.0 My npm version : 6.14.15 My OS: window 10 螢幕擷取畫面 2021-10-13 101915

after modify the command 螢幕擷取畫面 2021-10-13 125428

螢幕擷取畫面 2021-10-13 124255

stropitek commented 2 years ago

To make the build work, you'll have to use a unix system and install emscripten

But you probably can just copy files that are published by hand if you don't need to modify the SVM library and only want to play around with the demo website. What exactly do you want to achieve?