I have tried to use the serialport port module but it failed badly on the compilation to native. I then created an application without serialport and published it. After that I open the console on a device and simply did an <npm i -serialport>. Voilà it went through. Back at my application I re-added the serialport functionality, published it again and no errors were found an my application worked perfectly.
Can You help me understanding this?
(using the latest dev image)