You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: libsvm.cwrap is not a function
at module.exports (/Users/daniel/Desktop/libsvm/src/loadSVM.js:7:30)
at /Users/daniel/Desktop/libsvm/wasm.js:10:30
All of the other jazz is logged out now correctly....
I've look on Stackoverflow and there is a thread on...
Hello,
I am trying to build this library as i'd like to see how it works with the latest version of LibSVM.
Is this possible? First, i'm trying to just build it as is, using the current version released on npm.
If i checkout the repo and build the code and install it my project i get the following error....
TypeError: libsvm.load is not a function.
In the wasm.js file in the root folder i've added a console log to see if i can figure out why it is not loading.
Output from my build
Output from npm package
It looks like the promise is in fact resolved.
Any idea what could be happening here?
Follow up...
I've tried to alter wasm.js to resolve the promise....
This turns up the following error
All of the other jazz is logged out now correctly....
I've look on Stackoverflow and there is a thread on...
https://stackoverflow.com/questions/56040210/uncaught-typeerror-module-cwrap-is-not-a-function
But it seems this is already factored into the build configuration in the make file -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap", "Pointer_stringify"]'
This param has been depricated in favour of ...
-sEXPORTED_RUNTIME_METHODS=cwrap,Pointer_stringify
but i still get a warning about Pointer_stringify.
(It seems that Pointer_stringify is used in the serialize method of libsvm, but that isn't important and i could just remove it)
The text was updated successfully, but these errors were encountered: