-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running with Typescript (and Electron) #46
Comments
Did you figure it out? Facing the same issue. |
Hi @Christilut and @davidhaas6, Sorry, no, we have not yet looked into using the library with Typescript or with Electron. We're currently under active development and should be working on testing soon. I'll get back to this issue as soon as I can. Jorge |
We don't have a default Here is an example project that used essentia.js via Typescript. This file uses an old version of the lib though. But the method should be the same. As @jmarcosfer mentioned, we don't have an example of using it specifically on an Electron app yet. |
Managed to get it working using:
Then:
Which outputs:
|
or
but what works best for me is:
or ES6 imports only:
|
I'm trying to get Essentia.js working in my Electron app (with Typescipt and webpack) but I'm having trouble with it.
I also can't seem to get it working on this repl.it: https://repl.it/@christilut/essentia-typescript#index.ts
Not sure what I'm doing wrong here. It seems to complain no typings are available, but I thought they should be.
My Electron app says the same but continues anyway and runs into different import errors.
What is the correct way to import Essentia.js in Typescript? Since there are multiple ways, it would help to know the right way and see what happens then.
The text was updated successfully, but these errors were encountered: