Getting "Module not found: Can't resolve 'dns'" error when implementing Auth0 to existing Next-JS Typescript App

When I wrap my app in the tag I get this error and I do not understand why. Has anyone encountered this? I’ve been stuck for weeks. I believe it might have something to do with the UI Library I am using which is called Elastic UI.
Thanks.