Can't require native module in child process


So I have an app using SQLite3. It is a native module, so I used the electron-rebuild tool and it works perfectly. However, if I try to require SQLite3 in a child process via the child_process module and the fork function, it can no longer find the module.

Does anyone have any fixes?