ONVIF addon Support

Im currently trying to setup the foscam r2 on a raspberry pi gateway. I keep getting

Failed to start ONVIF cannot find module ‘gateway-addon’

everything seems fine when I navigate to the addons/onvif-adapter folder. Any idea why this keeps popping up?