"o.isContext is not a function" error across different scenarios