I modified the BLE Low Enery app under nRF Connect (Windows), and fork a custom .js file to connect to a comm port. The custom file requires 2 packages, fs and serialport. Running the .js file using node.js works fine, but running via nRF Connect require('fs') works, but then require('serialport') hangs the .js. The .js doesn't have console access so I write to a log file for debug and status. Upon require('serialport') I get nothing, but otherwise nRF Connect continues to run.
Any reason for this, or ideas on how to fix?