I'm having the same issue with the new 2.0 preview as per this issue, and the same fix worked (thanks!). However, is there any guidance on how to access the global provider going forward, with v2, so we can prepare?
v2.0 should work the same as v1.x and this is a bug that we need to fix before release, there shouldn't be anything you need to do here.