Builder IO userAgent

Error: An error happened while requiring the app vtex.countdown@0.0.1/CatchAllRoute, please check your app’s code.\nTypeError: Cannot read property ‘userAgent’ of undefined

I am getting this error while connecting vtex to builder.io