Build error RocketChat Electron app


Good afternoon and thanks for the free tool RocketChat!

We have our own RocketChat server with some of our improvements. Now we need to create a distributed desktop application and I follow the instructions from here

But after I want to compile the executable file with the yarn release command, an error occurs.

[16:13:55] 'release:linux' errored after 7.05 min
[16:13:55] Error: /usr/local/nvm/v8.11.3/bin/node exited with code 1
[16:13:55] Error in plugin "run-sequence(release:linux)"
In file included from /usr/include/stdlib.h:24:0, from ../vendor/hunspell/src/hunspell/affentry.cxx:4: /usr/include/features.h:367:25: fatal error: sys/cdefs.h: There is no such file or directory. compilation terminated.


all dependencies and libraries are installed. node version 8.11.3, yarn 1.10.1, npm 5.6.0,

Help to understand what is the error and where to look about?

I found and fixed the problem myself. If anyone needs it, a note (in russian lang) on my blog (