import { CacheRack, NetworkRack } from 'kinvey-js-sdk/dist/export';
import { MobileIdentityConnect } from 'kinvey-js-sdk/dist/identity';
import { Kinvey } from './kinvey';
import { CacheMiddleware, HttpMiddleware } from './middleware';
import Popup from './popup';

// Setup racks
CacheRack.useCacheMiddleware(new CacheMiddleware());
NetworkRack.useHttpMiddleware(new HttpMiddleware());

// Setup popup
MobileIdentityConnect.usePopupClass(Popup);

// Export
module.exports = Kinvey;

import Kinvey, { CacheRack, NetworkRack, User } from 'kinvey-js-sdk/dist/export';
import { CacheMiddleware, HttpMiddleware } from './middleware';
import Popup from './popup';

// Setup racks
CacheRack.useCacheMiddleware(new CacheMiddleware());
NetworkRack.useHttpMiddleware(new HttpMiddleware());

// Setup popup
User.usePopupClass(Popup);

// Export
module.exports = Kinvey;

--- 
+++ 
@@ -1,6 +1,4 @@
-import { CacheRack, NetworkRack } from 'kinvey-js-sdk/dist/export';
-import { MobileIdentityConnect } from 'kinvey-js-sdk/dist/identity';
-import { Kinvey } from './kinvey';
+import Kinvey, { CacheRack, NetworkRack, User } from 'kinvey-js-sdk/dist/export';
 import { CacheMiddleware, HttpMiddleware } from './middleware';
 import Popup from './popup';
 
@@ -9,7 +7,7 @@
 NetworkRack.useHttpMiddleware(new HttpMiddleware());
 
 // Setup popup
-MobileIdentityConnect.usePopupClass(Popup);
+User.usePopupClass(Popup);
 
 // Export
 module.exports = Kinvey;
Replace the Popup class used with the correct API
