Import auth0 issue - july 16 migration

We are migrating from Auth0-Lock 10.x to Universal Login. Our stack is Node.js server and React client.

Before, we used auth0-lock version 10.2.2:

import Auth0Lock from ‘auth0-lock’
lock = new Auth0Lock(clientId, domain, cfg)

Now, we are trying to use auth0-js version 9.6.1:

const AuthenticationClient = require(‘auth0’).AuthenticationClient;
var auth0Client = new AuthenticationClient({domain, clientId});
lock = new auth0Client.WebAuth()

We get the webpack build error:

ERROR in ./src/utils/AuthService.js
Module not found: Error: Can’t resolve ‘auth0’ in ‘/Users/jacobmyers/projects/project/src/utils’

We tried changing require(‘auth0’) to:
import * as auth0 from ‘auth0-js’

Then the build works, but we get the error:
AuthenticationClient is not a constructor

How do we import the auth0 / AuthenticationClient object correctly?
Thank you.