-
Notifications
You must be signed in to change notification settings - Fork 860
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
Make webworker-threads a peer-dependency #368
Comments
This comment helped me a ton. Was trying to get For a further explanation of the problem, I found this great blog post. It might help out, too. Thanks again! |
Same issue running on IBM OpenWhisk |
makes sense to me ill set that up asap |
On server side, I had to delete the |
👍 However, @OoDeLally, electron-rebuild seems to help with this |
I'm have the same problem in my function (aws lambda).
But, I'm using circleci to deploy my function. I'm can not send node_modules because I'm versioning the function with github. It's not a good pattern. @caseywreed / @kkoch986 do you have a suggestion for that? |
@caseywreed / @kkoch986 I solved my problem. In the circleci configuration file, I set it to use the
Thanks. |
|
What does that mean for the dependencies in Hugo |
Optional dependencies are still being installed by default, but The last option is what we've decided implement for the |
Ok. I simplified things as follows. I removed the Hugo |
PS Downside of this is that the parallel methods are not tested. If you want to test this, you first have to install Hugo |
I think this is issue is now solved. If not, please comment. Hugo |
You could still run the tests if you want, e.g:
So at least you test if works with, and without the module. |
is there a specific release of the npm version that fixes this? I still get the problem on ubuntu, but seem to be able to get it to compile on OSX. it's failing for me with
|
i tried
but then running my app
any other ideas appreciated, otherwise this library is basically unusable. |
I'm running
natural
in Electron.Natural crashes when imported on electron, because it tries to use
webworker-threads
, which only works on node.It works fine when I delete the
webworker-threads
folder fromnode_modules
folder. But this is tedious.As far as I know there is no way to specify in my
package.json
not to install thewebworker-threads
optional dependency ofnatural
(this seems to exist only on command-line with--no-optional
).A solution to that could be to set
webworker-threads
aspeer-dependencies
instead ofoptional-dependencies
in thepackage.json
. The user would have the choice to includewebworker-threads
in the case he wants it.Also, electron also has builtin webworkers, so it would be nice if
natural
can use them. But for now, it would be quite a low-hanging fruit not to use them at all.The text was updated successfully, but these errors were encountered: