Capacitor background runner not able to locate the src file

I am not able to successfully run the @capacitor/background-runner plugin in react as it is not able to locate the runner file whose path we give in the config file of capacitor. It says to give relative path to app bundle so if placed in the same directory of App.tsx like src: '/runner.js' or 'runner.js', it still fails to locate the file. Does anyone know the way to make it work? Thanks