m1dugh / native-sound-mixer

MIT License
25 stars 13 forks source link

npm package is not working #2

Closed fennabe closed 3 years ago

fennabe commented 3 years ago

First of all, thank you for the work you have done.

I'm not sure if I'm doing something wrong or not but I don't get this package to work. I'm using this package inside electron (with React) so I should be able to use native node.js packages in the main process. When I add the package with yarn, the folder _/nodemodules/native-sound-mixer/dist does only contain SoundMixer.node, no javascript files.

I'm unable to import anything because this dist folder is empty. What am i missing here?

m1dugh commented 3 years ago

Thanks for reporting, it shall be fixed now. I forgot to include the tsconfig.json file and build script wasn't properly started after install. It shall be working all fine now. Updated npm package too

m1dugh commented 3 years ago

you have to run npm install in the downloaded package to make it work. Otherwise, all the file won't be built. I'm trying to find a workaround to fix this but apparently it does not work

m1dugh commented 3 years ago

Update: now, package can be used for windows after npm install native-sound-mixer with version >=3.0.5